aboutsummaryrefslogtreecommitdiff
path: root/templates/food_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/food_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/food_archive.html')
-rw-r--r--templates/food_archive.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/food_archive.html b/templates/food_archive.html
new file mode 100644
index 0000000..bd709e2
--- /dev/null
+++ b/templates/food_archive.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+{% block title %}
+Recipe archive - Yaroslav's recipe book
+{% endblock %}
+{% block header %}
+<h1>Yaroslav's recipe archive</h1>
+{% endblock %}
+{% block content %}
+{% set section = get_section(path="food/_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 %}