diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-03-11 02:26:54 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-03-11 02:26:54 +0300 |
commit | da4917f8c673a16ba757b3b911cf5ce36895d74e (patch) | |
tree | eb36d2c213917359b50efe2b9c5bc00c2fa55543 /templates/archive.html | |
download | yaroslavps.com-da4917f8c673a16ba757b3b911cf5ce36895d74e.tar.gz yaroslavps.com-da4917f8c673a16ba757b3b911cf5ce36895d74e.zip |
initial commit
Diffstat (limited to 'templates/archive.html')
-rw-r--r-- | templates/archive.html | 14 |
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 %} |