diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-06-13 18:17:58 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-06-13 18:17:58 +0300 |
commit | 818b22078c9e106594fe5c0fbcdd4fb7248e15a6 (patch) | |
tree | 7082f7d217cc878d38ab08271ab139ce431d09e7 /templates/weblog_archive.html | |
parent | 8066b03372131ac206cafc4fe5735ebdf88cf31e (diff) | |
download | yaroslavps.com-818b22078c9e106594fe5c0fbcdd4fb7248e15a6.tar.gz yaroslavps.com-818b22078c9e106594fe5c0fbcdd4fb7248e15a6.zip |
Added links to recipes, recipe archive, smol template changes
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 %} |