aboutsummaryrefslogtreecommitdiff
path: root/templates/food_archive.html
diff options
context:
space:
mode:
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 %}