diff options
Diffstat (limited to 'templates/weblog_archive.html')
-rw-r--r-- | templates/weblog_archive.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/weblog_archive.html b/templates/weblog_archive.html new file mode 100644 index 0000000..b06bdb2 --- /dev/null +++ b/templates/weblog_archive.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block title %} +Weblog archive - Yaroslav's weblog +{% endblock %} +{% block header %} +<h1>Yaroslav's weblog archive</h1> +{% endblock %} +{% block content %} +{% set section = get_section(path="weblog/_index.md") %} +<div class="post-container"> + {% for year, posts in section.pages | group_by(attribute="year") %} + <h3>{{ year }}</h3> + <ul> + {% for post in posts %} + <li><span class="publish-date">{{ post.date | date }}</span> - <a href="{{ post.permalink }}">{{ post.title }}</a></li> + {% endfor %} + </ul> + {% endfor %} +</div> +{% endblock %} |