diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-03-12 18:44:41 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-03-12 18:44:41 +0300 |
commit | 5716bfd7548e386b12703e76cdf273bce839116c (patch) | |
tree | 5b21a9a8f6fd53e225f43385537d39fde70fa7c3 /templates/archive.html | |
download | saucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.tar.gz saucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.zip |
Initial commit
Essential functional website.
Diffstat (limited to 'templates/archive.html')
-rw-r--r-- | templates/archive.html | 30 |
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 %} |