diff options
author | Starfall <us@starfall.systems> | 2023-05-17 20:18:32 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-05-17 20:18:32 -0500 |
commit | 1cc3d1798ec2b7d0cc2fde3f97aea346a22176bf (patch) | |
tree | 4036f0cc4c1ef9df246b22fa5f9b2503d9d3d3c8 /src | |
parent | 82f220a494300971b93fafda39a853e2e103574a (diff) |
move stuff into folders, start on blog page
Diffstat (limited to 'src')
-rw-r--r-- | src/blog.njk | 14 | ||||
-rw-r--r-- | src/blog/foobar.md | 6 | ||||
-rw-r--r-- | src/blog/hello-world.md | 7 | ||||
-rw-r--r-- | src/index.html | 6 |
4 files changed, 33 insertions, 0 deletions
diff --git a/src/blog.njk b/src/blog.njk new file mode 100644 index 0000000..29709f7 --- /dev/null +++ b/src/blog.njk @@ -0,0 +1,14 @@ +--- +layout: base.njk +pagination: + data: collections.post + size: 20 + reverse: true + alias: posts +--- +{% for post in posts %} +<article> + <h2><a href="{{ post.url | url }}">{{ post.data.title }}</a></h2> + <time datetime="{{ post.date | rfc3339_datetime }}">{{ post.date | local_date }}</time> +</article> +{% endfor %} diff --git a/src/blog/foobar.md b/src/blog/foobar.md new file mode 100644 index 0000000..081799b --- /dev/null +++ b/src/blog/foobar.md @@ -0,0 +1,6 @@ +--- +layout: base.njk +tags: ["post"] +title: Some second post +--- +Second post, hooray! diff --git a/src/blog/hello-world.md b/src/blog/hello-world.md new file mode 100644 index 0000000..0feadd7 --- /dev/null +++ b/src/blog/hello-world.md @@ -0,0 +1,7 @@ +--- +layout: base.njk +title: Hello, World! +tags: + - post +--- +Hello, World! diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..e4aa82e --- /dev/null +++ b/src/index.html @@ -0,0 +1,6 @@ +--- +layout: base.njk +title: starfall.systems +--- + +Hello, World! |