diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-02-20 17:49:03 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-02-20 18:00:32 +0300 |
commit | 4107aceab1d22cc4614afaa3d0779d4aee3469b7 (patch) | |
tree | f636b116efbc0d179e5aedd2f4b95718cc13aa8c /templates/food_archive.html | |
parent | 66a4844e829495328d738f31728c9c03c11c2771 (diff) | |
download | yaroslavps.com-4107aceab1d22cc4614afaa3d0779d4aee3469b7.tar.gz yaroslavps.com-4107aceab1d22cc4614afaa3d0779d4aee3469b7.zip |
Translated to Russian and Spanish
Translated all templates so that the site is available in Russian and
Spanish once more. I am still not committed to write/translate
everything in three different languages, but there have been some things
that I've been meaning to write in Russian.
Diffstat (limited to 'templates/food_archive.html')
-rw-r--r-- | templates/food_archive.html | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/templates/food_archive.html b/templates/food_archive.html index b298815..e8dab8e 100644 --- a/templates/food_archive.html +++ b/templates/food_archive.html @@ -1,20 +1,42 @@ {% extends "base.html" %} {% block title %} +{% if lang == "ru" %} +Архив рецептов - Книга рецептов Ярослава +{% elif lang == "es" %} +Archivo del recetario - Recetario de Yaroslav +{% else %} Recipe archive - Yaroslav's recipe book +{% endif %} {% endblock %} {% block header %} -<h1>Yaroslav's recipe archive</h1> +<h1> + {% if lang == "ru" %} + Архив рецептов Ярослава + {% elif lang == "es" %} + Archivo del recetario de Yaroslav + {% else %} + Yaroslav's recipe archive + {% endif %} +</h1> {% endblock %} {% block content %} -{% set section = get_section(path="food/_index.md") %} +{% if lang != "en" %} +{% set section_path = "food/_index." ~ lang ~ ".md" %} +{% else %} +{% set section_path = "food/_index.md" %} +{% endif %} +{% set section = get_section(path=section_path) %} <div class="post-container"> - {% for year, posts in section.pages | group_by(attribute="year") %} - <h2>{{ year }}</h2> - <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 %} + {% for year, posts in section.pages | group_by(attribute="year") %} + <h2>{{ year }}</h2> + <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 %} |