Skip to content

Commit 820f379

Browse files
committed
Website revamp
1 parent 13db7ca commit 820f379

25 files changed

+403
-0
lines changed

Gemfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
# Happy Jekylling!
11+
gem "jekyll", "~> 3.7.3"
12+
13+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
14+
gem "minima", "~> 2.0"
15+
16+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
17+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
18+
# gem "github-pages", group: :jekyll_plugins
19+
20+
# If you have any plugins, put them here!
21+
group :jekyll_plugins do
22+
gem "jekyll-feed", "~> 0.6"
23+
end
24+
25+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
30+

Gemfile.lock

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
6+
colorator (1.1.0)
7+
concurrent-ruby (1.0.5)
8+
em-websocket (0.5.1)
9+
eventmachine (>= 0.12.9)
10+
http_parser.rb (~> 0.6.0)
11+
eventmachine (1.2.5)
12+
ffi (1.9.23)
13+
forwardable-extended (2.6.0)
14+
http_parser.rb (0.6.0)
15+
i18n (0.9.5)
16+
concurrent-ruby (~> 1.0)
17+
jekyll (3.7.3)
18+
addressable (~> 2.4)
19+
colorator (~> 1.0)
20+
em-websocket (~> 0.5)
21+
i18n (~> 0.7)
22+
jekyll-sass-converter (~> 1.0)
23+
jekyll-watch (~> 2.0)
24+
kramdown (~> 1.14)
25+
liquid (~> 4.0)
26+
mercenary (~> 0.3.3)
27+
pathutil (~> 0.9)
28+
rouge (>= 1.7, < 4)
29+
safe_yaml (~> 1.0)
30+
jekyll-feed (0.9.3)
31+
jekyll (~> 3.3)
32+
jekyll-sass-converter (1.5.2)
33+
sass (~> 3.4)
34+
jekyll-seo-tag (2.4.0)
35+
jekyll (~> 3.3)
36+
jekyll-watch (2.0.0)
37+
listen (~> 3.0)
38+
kramdown (1.16.2)
39+
liquid (4.0.0)
40+
listen (3.1.5)
41+
rb-fsevent (~> 0.9, >= 0.9.4)
42+
rb-inotify (~> 0.9, >= 0.9.7)
43+
ruby_dep (~> 1.2)
44+
mercenary (0.3.6)
45+
minima (2.4.1)
46+
jekyll (~> 3.5)
47+
jekyll-feed (~> 0.9)
48+
jekyll-seo-tag (~> 2.1)
49+
pathutil (0.16.1)
50+
forwardable-extended (~> 2.6)
51+
public_suffix (3.0.2)
52+
rb-fsevent (0.10.3)
53+
rb-inotify (0.9.10)
54+
ffi (>= 0.5.0, < 2)
55+
rouge (3.1.1)
56+
ruby_dep (1.5.0)
57+
safe_yaml (1.0.4)
58+
sass (3.5.6)
59+
sass-listen (~> 4.0.0)
60+
sass-listen (4.0.0)
61+
rb-fsevent (~> 0.9, >= 0.9.4)
62+
rb-inotify (~> 0.9, >= 0.9.7)
63+
64+
PLATFORMS
65+
ruby
66+
67+
DEPENDENCIES
68+
jekyll (~> 3.7.3)
69+
jekyll-feed (~> 0.6)
70+
minima (~> 2.0)
71+
tzinfo-data
72+
73+
BUNDLED WITH
74+
1.16.1

_config.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
11+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: leaf3d
17+
description: >- # this means to ignore newlines until "baseurl:"
18+
A lightweight 3D rendering engine based on modern OpenGL
19+
author: Emanuele Bertoldi
20+
21+
baseurl: "" # the subpath of your site, e.g. /blog
22+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
23+
github_url: https://github.com/leaf3d/leaf3d
24+
25+
# Build settings
26+
markdown: kramdown
27+
plugins:
28+
- jekyll-feed
29+
30+
# Content collections
31+
collections:
32+
featured:
33+
output: true
34+
35+
# Exclude from processing.
36+
# The following items will not be processed, by default. Create a custom list
37+
# to override the default setting.
38+
# exclude:
39+
# - Gemfile
40+
# - Gemfile.lock
41+
# - node_modules
42+
# - vendor/bundle/
43+
# - vendor/cache/
44+
# - vendor/gems/
45+
# - vendor/ruby/

_featured/01_grass.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Grass
3+
image: assets/images/grass.jpg
4+
---

_featured/02_istancing.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Instancing
3+
image: assets/images/planet.jpg
4+
---

_featured/03_water.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Water
3+
image: assets/images/water.jpg
4+
---

_featured/05_light.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Advanced Lighting
3+
image: assets/images/lamp.jpg
4+
---

_featured/06_model3d.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Model 3D
3+
image: assets/images/frankie.jpg
4+
---

_includes/brand.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="brand">
2+
<a href="/"><img src="assets/images/logo.svg" alt="{{ site.name }}"/></a>
3+
</div>

_includes/content.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="content">
2+
<div class="container">
3+
<div class="lightbox">
4+
{{ site.description | markdownify }}
5+
</div>
6+
<div class="features">
7+
{{ content | markdownify }}
8+
</div>
9+
{% include featured_images.html %}
10+
{% include contribute.html %}
11+
</div>
12+
</div>

_includes/contribute.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="contribute">
2+
<p class="lightbox">
3+
It's free and open-source.<br/>
4+
So, what're you waiting for?
5+
</p>
6+
<a class="btn" href="{{ site.github_url }}">
7+
<i class="fab fa-github"></i>
8+
Let's contribute!
9+
</a>
10+
</div>

_includes/featured_images.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="featured-images row stackable">
2+
{% for featured_content in site.featured %}
3+
<figure class="col half">
4+
<img src="{{ featured_content.image }}"/>
5+
<figcaption>{{ featured_content.title | escape }}</figcaption>
6+
</figure>
7+
{% endfor %}
8+
</div>

_includes/footer.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<footer class="footer">
2+
<div class="container">
3+
Copyright 2018 Emanuele Bertoldi
4+
</div>
5+
</footer>

_includes/head.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<head>
2+
3+
<meta charset="utf-8">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="description" content="{{ site.description }}">
7+
<meta name="author" content="{{ site.author }}">
8+
9+
<title>{{ site.title }}</title>
10+
11+
<!-- Eight.css -->
12+
<link href="https://unpkg.com/eight.css/lib/eight.css" rel="stylesheet" type="text/css">
13+
14+
<!-- Font Awesome -->
15+
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
16+
17+
<!-- Custom CSS -->
18+
<link href="assets/css/main.css" rel="stylesheet" type="text/css">
19+
20+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
21+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
22+
<!--[if lt IE 9]>
23+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
24+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
25+
<![endif]-->
26+
27+
</head>

_includes/header.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<header class="header">
2+
<div class="container">
3+
{% include brand.html %}
4+
{% include nav.html %}
5+
</div>
6+
</header>

_includes/nav.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<nav class="nav">
2+
<a href="{{ site.github_url }}">
3+
<i class="fab fa-github"></i>
4+
View on GitHub
5+
</a>
6+
</nav>

_layouts/home.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
{% include head.html %}
5+
6+
<body id="page">
7+
{% include header.html %}
8+
{% include content.html %}
9+
{% include footer.html %}
10+
</body>
11+
12+
</html>

0 commit comments

Comments
 (0)