add all files for the site

This commit is contained in:
Aaron Langham 2023-11-26 21:31:37 +00:00
parent 80914813be
commit 950d364358
30 changed files with 590 additions and 0 deletions

7
Gemfile Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
source "https://rubygems.org"
# gem "rails"
gem "jekyll", "~> 4.3"

70
Gemfile.lock Normal file
View File

@ -0,0 +1,70 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.2.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.1-x86_64-linux)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.4)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (4.2.0)
safe_yaml (1.0.5)
sass-embedded (1.69.5-x86_64-linux-gnu)
google-protobuf (~> 3.23)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)
PLATFORMS
x86_64-linux
DEPENDENCIES
jekyll (~> 4.3)
BUNDLED WITH
2.4.22

6
_authors/jill.md Normal file
View File

@ -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.

6
_authors/ted.md Normal file
View File

@ -0,0 +1,6 @@
---
short_name: ted
name: Ted Doe
position: Writer
---
Ted has been eating fruit since he was baby.

19
_config.yml Normal file
View File

@ -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"

8
_data/navigation.yml Normal file
View File

@ -0,0 +1,8 @@
- name: Home
link: /
- name: About
link: /about.html
- name: Blog
link: /blog.html
- name: Staff
link: /staff.html

View File

@ -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>

15
_layouts/author.html Normal file
View File

@ -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>

12
_layouts/default.html Normal file
View File

@ -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>

14
_layouts/post.html Normal file
View File

@ -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 }}

View File

@ -0,0 +1,11 @@
---
layout: post
author: jill
---
An apple is a sweet, edible fruit produced by an apple tree.
Apple trees are cultivated worldwide, and are the most widely grown
species in the genus Malus. The tree originated in Central Asia, where
its wild ancestor, Malus sieversii, is still found today. Apples have
been grown for thousands of years in Asia and Europe, and were brought
to North America by European colonists.

View File

@ -0,0 +1,13 @@
---
layout: post
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.

12
_posts/2023-11-26-kiwi.md Normal file
View File

@ -0,0 +1,12 @@
---
layout: post
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 (58 cm (2.03.1 in) in length and 4.55.5 cm
(1.82.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.

3
_sass/main.scss Normal file
View File

@ -0,0 +1,3 @@
.current {
color: green;
}

View File

@ -0,0 +1,41 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Apples</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Apples</h1>
<p>
26 Nov 2023
- <a href="/authors/jill.html">Jill Smith</a>
</p>
<p>An apple is a sweet, edible fruit produced by an apple tree.</p>
<p>Apple trees are cultivated worldwide, and are the most widely grown
species in the genus Malus. The tree originated in Central Asia, where
its wild ancestor, Malus sieversii, is still found today. Apples have
been grown for thousands of years in Asia and Europe, and were brought
to North America by European colonists.</p>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Bananas</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Bananas</h1>
<p>
26 Nov 2023
- <a href="/authors/jill.html">Jill Smith</a>
</p>
<p>A banana is an edible fruit botanically a berry produced by several
kinds of large herbaceous flowering plants in the genus Musa.</p>
<p>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.</p>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Kiwi</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Kiwi</h1>
<p>
26 Nov 2023
- <a href="/authors/ted.html">Ted Doe</a>
</p>
<p>Kiwifruit (often abbreviated as kiwi), or Chinese gooseberry is the
edible berry of several species of woody vines in the genus Actinidia.</p>
<p>The most common cultivar group of kiwifruit is oval, about the size of
a large hens egg (58 cm (2.03.1 in) in length and 4.55.5 cm
(1.82.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.</p>
</body>
</html>

26
_site/about.html Normal file
View File

@ -0,0 +1,26 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>About</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" class="current">About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1 id="about-page">About page</h1>
<p>This page tells you a little bit about me.</p>
</body>
</html>

View File

@ -0,0 +1,5 @@
.current {
color: green;
}
/*# sourceMappingURL=styles.css.map */

View File

@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["../../_sass/main.scss"],"names":[],"mappings":"AAAA;EACI","sourcesContent":[".current {\n color: green;\n}\n"],"file":"styles.css"}

38
_site/authors/jill.html Normal file
View File

@ -0,0 +1,38 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jill</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Jill Smith</h1>
<h2>Chief Editor</h2>
<p>Jill is an avid fruit grower based in the south of France.</p>
<h2>Posts</h2>
<ul>
<li><a href="/2023/11/26/bananas.html">Bananas</a></li>
<li><a href="/2023/11/26/apples.html">Apples</a></li>
</ul>
</body>
</html>

36
_site/authors/ted.html Normal file
View File

@ -0,0 +1,36 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Ted</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Ted Doe</h1>
<h2>Writer</h2>
<p>Ted has been eating fruit since he was baby.</p>
<h2>Posts</h2>
<ul>
<li><a href="/2023/11/26/kiwi.html">Kiwi</a></li>
</ul>
</body>
</html>

48
_site/blog.html Normal file
View File

@ -0,0 +1,48 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Blog</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" class="current">Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>Latest Posts</h1>
<ul>
<li>
<h2><a href="/2023/11/26/kiwi.html">Kiwi</a></h2>
<p>Kiwifruit (often abbreviated as kiwi), or Chinese gooseberry is the
edible berry of several species of woody vines in the genus Actinidia.</p>
</li>
<li>
<h2><a href="/2023/11/26/bananas.html">Bananas</a></h2>
<p>A banana is an edible fruit botanically a berry produced by several
kinds of large herbaceous flowering plants in the genus Musa.</p>
</li>
<li>
<h2><a href="/2023/11/26/apples.html">Apples</a></h2>
<p>An apple is a sweet, edible fruit produced by an apple tree.</p>
</li>
</ul>
</body>
</html>

24
_site/index.html Normal file
View File

@ -0,0 +1,24 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" class="current">Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" >Staff</a>
</nav>
<h1>hello world!</h1>
</body>
</html>

42
_site/staff.html Normal file
View File

@ -0,0 +1,42 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Staff</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<nav>
<a href="/" >Home</a>
<a href="/about.html" >About</a>
<a href="/blog.html" >Blog</a>
<a href="/staff.html" class="current">Staff</a>
</nav>
<h1>Staff</h1>
<ul>
<li>
<h2><a href="/authors/jill.html">Jill Smith</a></h2>
<h3>Chief Editor</h3>
<p><p>Jill is an avid fruit grower based in the south of France.</p>
</p>
</li>
<li>
<h2><a href="/authors/ted.html">Ted Doe</a></h2>
<h3>Writer</h3>
<p><p>Ted has been eating fruit since he was baby.</p>
</p>
</li>
</ul>
</body>
</html>

7
about.md Normal file
View File

@ -0,0 +1,7 @@
---
layout: default
title: About
---
# About page
This page tells you a little bit about me.

3
assets/css/styles.scss Normal file
View File

@ -0,0 +1,3 @@
---
---
@import "main";

14
blog.html Normal file
View File

@ -0,0 +1,14 @@
---
layout: default
title: Blog
---
<h1>Latest Posts</h1>
<ul>
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
</li>
{% endfor %}
</ul>

5
index.html Normal file
View File

@ -0,0 +1,5 @@
---
layout: default
title: Home
---
<h1>{{ "Hello World!" | downcase }}</h1>

15
staff.html Normal file
View File

@ -0,0 +1,15 @@
---
layout: default
title: Staff
---
<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>