From 5716bfd7548e386b12703e76cdf273bce839116c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 12 Mar 2021 18:44:41 +0300 Subject: Initial commit Essential functional website. --- templates/archive.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 templates/archive.html (limited to 'templates/archive.html') 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 %} +

{{ trans(key="archive_title", lang=lang) }}

+{% 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) %} +

+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. +

+
+ {% for year, recipes in section.pages | group_by(attribute="year") %} +

{{ year }}

+ + {% endfor %} +
+{% endblock %} -- cgit v1.2.3