diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000000000000000000000000000000000000..e8a7006386e7ce6b8920b6d6e4283d0d833455d8 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'jekyll' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000000000000000000000000000000000000..44b8aa1236e1598bc9705d8928048105c521533f --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,63 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + colorator (1.1.0) + concurrent-ruby (1.1.4) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.10.0) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-watch (2.1.2) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.1) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.0.3) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (3.3.0) + ruby_dep (1.5.0) + safe_yaml (1.0.4) + sass (3.7.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll + +BUNDLED WITH + 2.0.1 diff --git a/_authors/jill.md b/_authors/jill.md new file mode 100644 index 0000000000000000000000000000000000000000..711044c7f2939688045fac1fcd1041803e8980c0 --- /dev/null +++ b/_authors/jill.md @@ -0,0 +1,6 @@ +--- +short_name: jill +name: Jill Smith +position: Chief Editor +--- +Jill is an avid fruit grower based in the south of France. diff --git a/_authors/ted.md b/_authors/ted.md new file mode 100644 index 0000000000000000000000000000000000000000..bae8e067faa70c80bc87f0845f6495884cedd485 --- /dev/null +++ b/_authors/ted.md @@ -0,0 +1,6 @@ +--- +short_name: ted +name: Ted Doe +position: Writer +--- +Ted has been eating fruit since he was baby. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000000000000000000000000000000000000..203825c0ac3de425e171ab657e6bdb8ee1cfd0e0 --- /dev/null +++ b/_config.yml @@ -0,0 +1,19 @@ +collections: + authors: + output: true + +defaults: + - scope: + path: "" + type: "authors" + values: + layout: "author" + - scope: + path: "" + type: "posts" + values: + layout: "post" + - scope: + path: "" + values: + layout: "default" diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000000000000000000000000000000000000..df9b21cf87f65961102a98a2b6523a179b6109b7 --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,8 @@ +- name: Home + link: / +- name: About + link: /about.html +- name: Blog + link: /blog.html +- name: Staff + link: /staff.html diff --git a/_includes/navigation.html b/_includes/navigation.html new file mode 100644 index 0000000000000000000000000000000000000000..ab853aa3cd3a3358144b0f60920751a5890d53a1 --- /dev/null +++ b/_includes/navigation.html @@ -0,0 +1,5 @@ +<nav> + {% for item in site.data.navigation %} + <a href="{{ item.link }}" {% if page.url == item.link %}class="current"{% endif %}>{{ item.name }}</a> + {% endfor %} +</nav> diff --git a/_layouts/author.html b/_layouts/author.html new file mode 100644 index 0000000000000000000000000000000000000000..241a3f39bd698960d7e4ee72359f39b532a9dee1 --- /dev/null +++ b/_layouts/author.html @@ -0,0 +1,15 @@ +--- +layout: default +--- +<h1>{{ page.name }}</h1> +<h2>{{ page.position }}</h2> + +{{ content }} + +<h2>Posts</h2> +<ul> + {% assign filtered_posts = site.posts | where: 'author', page.short_name %} + {% for post in filtered_posts %} + <li><a href="{{ post.url }}">{{ post.title }}</a></li> + {% endfor %} +</ul> diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000000000000000000000000000000000000..f7b3e7d80493b963b715829151e801bbbd5da2a8 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,12 @@ +<!doctype html> +<html> + <head> + <meta charset="utf-8"> + <title>{{ page.title }}</title> + <link rel="stylesheet" href="/assets/css/styles.css"> + </head> + <body> + {% include navigation.html %} + {{ content }} + </body> +</html> diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000000000000000000000000000000000000..bd678243e18d50fd0430c68f58b4df3df39fbef3 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,14 @@ +--- +layout: default +--- +<h1>{{ page.title }}</h1> + +<p> + {{ page.date | date_to_string }} + {% assign author = site.authors | where: 'short_name', page.author | first %} + {% if author %} + - <a href="{{ author.url }}">{{ author.name }}</a> + {% endif %} +</p> + +{{ content }} diff --git a/_posts/2019-02-13-bananas.md b/_posts/2019-02-13-bananas.md new file mode 100644 index 0000000000000000000000000000000000000000..a42e705e0999e284dace4ef188b5539312cd85f9 --- /dev/null +++ b/_posts/2019-02-13-bananas.md @@ -0,0 +1,11 @@ +--- +author: jill +--- +A banana is an edible fruit – botanically a berry – produced by several kinds +of large herbaceous flowering plants in the genus Musa. + +In some countries, bananas used for cooking may be called "plantains", +distinguishing them from dessert bananas. The fruit is variable in size, color, +and firmness, but is usually elongated and curved, with soft flesh rich in +starch covered with a rind, which may be green, yellow, red, purple, or brown +when ripe. diff --git a/_posts/2019-02-13-kiwis.md b/_posts/2019-02-13-kiwis.md new file mode 100644 index 0000000000000000000000000000000000000000..e68cec50f493434b42a926ea595415c0b7f3dd1d --- /dev/null +++ b/_posts/2019-02-13-kiwis.md @@ -0,0 +1,11 @@ +--- +author: ted +--- +Kiwifruit (often abbreviated as kiwi), or Chinese gooseberry is the edible +berry of several species of woody vines in the genus Actinidia. + +The most common cultivar group of kiwifruit is oval, about the size of a large +hen's egg (5–8 cm (2.0–3.1 in) in length and 4.5–5.5 cm (1.8–2.2 in) in +diameter). It has a fibrous, dull greenish-brown skin and bright green or +golden flesh with rows of tiny, black, edible seeds. The fruit has a soft +texture, with a sweet and unique flavor. diff --git a/_sass/main.scss b/_sass/main.scss new file mode 100644 index 0000000000000000000000000000000000000000..bc25e9ec345e7f25206a42139085669d4ad800b9 --- /dev/null +++ b/_sass/main.scss @@ -0,0 +1,3 @@ +.current { + color: green; +} diff --git a/about.md b/about.md new file mode 100644 index 0000000000000000000000000000000000000000..b97816154ad8a337db8c8ed63989f6c5907798ce --- /dev/null +++ b/about.md @@ -0,0 +1,6 @@ +--- +title: About +--- +# About page + +This page tells you a little bit about me. diff --git a/assets/css/styles.scss b/assets/css/styles.scss new file mode 100644 index 0000000000000000000000000000000000000000..9e5cbc684cfca263e4205d25db0a228fc01d77d4 --- /dev/null +++ b/assets/css/styles.scss @@ -0,0 +1,3 @@ +--- +--- +@import "main"; diff --git a/blog.html b/blog.html new file mode 100644 index 0000000000000000000000000000000000000000..09f1c2519860439bd7eb0a16ba0b7a7a39b88668 --- /dev/null +++ b/blog.html @@ -0,0 +1,13 @@ +--- +title: Blog +--- +<h1>Latest Posts</h1> + +<ul> + {% for post in site.posts %} + <li> + <h2><a href="{{ post.url }}">{{ post.title }}</a></h2> + <p>{{ post.excerpt }}</p> + </li> + {% endfor %} +</ul> diff --git a/index.html b/index.html new file mode 100644 index 0000000000000000000000000000000000000000..a64484d1793498145008dcd736b4dc65411dcec8 --- /dev/null +++ b/index.html @@ -0,0 +1,4 @@ +--- +title: Home +--- +<h1>{{ "Hello World!" | downcase }}</h1> diff --git a/staff.html b/staff.html new file mode 100644 index 0000000000000000000000000000000000000000..b26bd097f23fb84874e2107d02b7854ff4b97e69 --- /dev/null +++ b/staff.html @@ -0,0 +1,13 @@ +--- +--- +<h1>Staff</h1> + +<ul> + {% for author in site.authors %} + <li> + <h2><a href="{{ author.url }}">{{ author.name }}</a></h2> + <h3>{{ author.position }}</h3> + <p>{{ author.content | markdownify }}</p> + </li> + {% endfor %} +</ul>