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/weblog_archive.html | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'templates/weblog_archive.html') diff --git a/templates/weblog_archive.html b/templates/weblog_archive.html index cd507ba..74613e4 100644 --- a/templates/weblog_archive.html +++ b/templates/weblog_archive.html @@ -1,20 +1,42 @@ {% extends "base.html" %} {% block title %} +{% if lang == "ru" %} +Архив веб-журнала - Веб-журнал Ярослава +{% elif lang == "es" %} +Archivo del weblog - Weblog de Yaroslav +{% else %} Weblog archive - Yaroslav's weblog +{% endif %} {% endblock %} {% block header %} -

Yaroslav's weblog archive

+

+ {% if lang == "ru" %} + Архив веб-журнала Ярослава + {% elif lang == "es" %} + Archivo del weblog de Yaroslav + {% else %} + Yaroslav's weblog archive + {% endif %} +

{% endblock %} {% block content %} -{% set section = get_section(path="weblog/_index.md") %} +{% if lang != "en" %} +{% set section_path = "weblog/_index." ~ lang ~ ".md" %} +{% else %} +{% set section_path = "weblog/_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