summary refs log tree commit diff
path: root/src/blog.njk
diff options
context:
space:
mode:
Diffstat (limited to 'src/blog.njk')
-rw-r--r--src/blog.njk14
1 files changed, 14 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 %}