diff options
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! |