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.html | 120 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 79 insertions(+), 41 deletions(-) (limited to 'templates/weblog.html') diff --git a/templates/weblog.html b/templates/weblog.html index 253f79e..f9889af 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -1,48 +1,86 @@ {% extends "base.html" %} {% block title %} - {% if section.permalink is containing("weblog") %} - A weblog by Yaroslav de la Peña Smirnov - {% elif section.permalink is containing("food") %} - A collection of recipes by Yaroslav de la Peña Smirnov - {% else %} - A website by Yaroslav de la Peña Smirnov - {% endif %} + {% if section.permalink is containing("weblog") %} + {% if lang == "ru" %} + Веб-журнал Ярослава де ла Пенья Смирнова + {% elif lang == "es" %} + Un Weblog escrito por Yaroslav de la Peña Smirnov + {% else %} + A weblog by Yaroslav de la Peña Smirnov + {% endif %} + {% elif section.permalink is containing("food") %} + {% if lang == "ru" %} + Сборник рецептов Ярослава де ла Пенья Смирнова + {% elif lang == "es" %} + Una colección de recetas por Yaroslav de la Peña Smirnov + {% else %} + A collection of recipes by Yaroslav de la Peña Smirnov + {% endif %} + {% else %} + A website by Yaroslav de la Peña Smirnov + {% endif %} {% endblock %} {% block header %} - {% if section.permalink is containing("weblog") %} -

Yaroslav's weblog

- {% elif section.permalink is containing("food") %} -

Yaroslav's recipe book

- {% else %} -

Yaroslav's website

- {% endif %} + {% if section.permalink is containing("weblog") %} +

+ {% if lang == "ru" %} + Веб-журнал Ярослава + {% elif lang == "es" %} + Weblog de Yaroslav + {% else %} + Yaroslav's weblog + {% endif %} +

+ {% elif section.permalink is containing("food") %} +

+ {% if lang == "ru" %} + Книга рецептов Ярослава + {% elif lang == "es" %} + Recetario de Yaroslav + {% else %} + Yaroslav's recipe book + {% endif %} +

+ {% else %} +

Yaroslav's website

+ {% endif %} {% endblock %} {% block content %} -
- {% for post in paginator.pages %} -
-

- {{ post.title }} - {{ post.date | date }} -

- {% if post.summary %} - {{ post.summary | safe }} - {% endif %} -
- {% endfor %} -
-{% if paginator %} - {% if paginator.number_pagers > 1 %} -
- {% if paginator.previous %} - |← First - Page {{ paginator.current_index - 1 }} - {% endif %} - {% if paginator.next %} - Page {{ paginator.current_index + 1 }} - Last →| - {% endif %} -
- {% endif %} -{% endif %} +
+ {% for post in paginator.pages %} +
+

+ {{ post.title }} + {{ post.date | date }} +

+ {% if post.summary %} + {{ post.summary | safe }} + {% endif %} +
+ {% endfor %} +
+ {% if paginator %} + {% if paginator.number_pagers > 1 %} +
+ {% if paginator.previous %} + + |← First + + + Page + {{ paginator.current_index - 1 }} + + {% endif %} + {% if paginator.next %} + + Page {{ paginator.current_index + 1 }} + + + + Last →| + + {% endif %} +
+ {% endif %} + {% endif %} {% endblock %} -- cgit v1.2.3