aboutsummaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..0e3c2bf
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,20 @@
+{% extends "section.html" %}
+
+{%- block content -%}
+<h1>{{ section.title }}</h1>
+{%- for year, posts in section.pages | group_by(attribute="year") -%}
+<section class="times">
+<h2>{{ year }}</h2>
+
+<ul>
+{%- for post in posts %}
+ <li>
+ <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3>
+ <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%d %h %Y")}}</time>
+ </li>
+{%- endfor %}
+</ul>
+
+</section>
+{%- endfor %}
+{%- endblock content -%}