aboutsummaryrefslogtreecommitdiff
path: root/templates/archive.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/archive.html b/templates/archive.html
new file mode 100644
index 0000000..68daf65
--- /dev/null
+++ b/templates/archive.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+{% block content %}
+{% set section = get_section(path="weblog/_index.md") %}
+<div class="posts-list">
+ {% for year, posts in section.pages | group_by(attribute="year") %}
+ <h2>{{ year }}</h2>
+ <ul>
+ {% for post in posts %}
+ <li>{{ post.date }} - <a href="{{ post.permalink }}">{{ post.title }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+</div>
+{% endblock %}