aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/archive.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
commit5716bfd7548e386b12703e76cdf273bce839116c (patch)
tree5b21a9a8f6fd53e225f43385537d39fde70fa7c3 /templates/archive.html
downloadsaucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.tar.gz
saucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.zip
Initial commit
Essential functional website.
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/archive.html b/templates/archive.html
new file mode 100644
index 0000000..445f37b
--- /dev/null
+++ b/templates/archive.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+{% block title %}Recipes archive — {{ config.title }}{% endblock %}
+{% block h1title %}
+<h1>{{ trans(key="archive_title", lang=lang) }}</h1>
+{% endblock %}
+{% block body %}
+{% if lang != "en" %}
+{% set section_path = "recipes/_index." ~ lang ~ ".md" %}
+{% else %}
+{% set section_path = "recipes/_index.md" %}
+{% endif %}
+{% set section = get_section(path=section_path) %}
+<p>
+<i>Tip: If you want to search for some recipe, try using your browsers "Find"
+ function. In most browsers you can open it with Ctrl+F or F3.</i>
+</p>
+<div class="recipe-container">
+ {% for year, recipes in section.pages | group_by(attribute="year") %}
+ <h2>{{ year }}</h2>
+ <ul>
+ {% for recipe in recipes %}
+ <li>
+ <span class="publish-date">{{ recipe.date | date }}</span> -
+ <a href="{{ recipe.permalink }}">{{ recipe.title }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+</div>
+{% endblock %}