aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog_archive.html
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-06-13 18:17:58 +0300
committerYaroslav <contact@yaroslavps.com>2020-06-13 18:17:58 +0300
commit818b22078c9e106594fe5c0fbcdd4fb7248e15a6 (patch)
tree7082f7d217cc878d38ab08271ab139ce431d09e7 /templates/weblog_archive.html
parent8066b03372131ac206cafc4fe5735ebdf88cf31e (diff)
downloadyaroslavps.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.html20
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 %}