aboutsummaryrefslogtreecommitdiff
path: root/templates/archive.html
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-03-11 02:26:54 +0300
committerYaroslav <contact@yaroslavps.com>2020-03-11 02:26:54 +0300
commitda4917f8c673a16ba757b3b911cf5ce36895d74e (patch)
treeeb36d2c213917359b50efe2b9c5bc00c2fa55543 /templates/archive.html
downloadyaroslavps.com-da4917f8c673a16ba757b3b911cf5ce36895d74e.tar.gz
yaroslavps.com-da4917f8c673a16ba757b3b911cf5ce36895d74e.zip
initial commit
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 %}