From 4107aceab1d22cc4614afaa3d0779d4aee3469b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sat, 20 Feb 2021 17:49:03 +0300 Subject: 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. --- templates/food_archive.html | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'templates/food_archive.html') 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 %} -

Yaroslav's recipe archive

+

+ {% if lang == "ru" %} + Архив рецептов Ярослава + {% elif lang == "es" %} + Archivo del recetario de Yaroslav + {% else %} + Yaroslav's recipe archive + {% endif %} +

{% 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) %}
- {% for year, posts in section.pages | group_by(attribute="year") %} -

{{ year }}

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

{{ year }}

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