aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-20 17:49:03 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-20 18:00:32 +0300
commit4107aceab1d22cc4614afaa3d0779d4aee3469b7 (patch)
treef636b116efbc0d179e5aedd2f4b95718cc13aa8c /templates/weblog.html
parent66a4844e829495328d738f31728c9c03c11c2771 (diff)
downloadyaroslavps.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/weblog.html')
-rw-r--r--templates/weblog.html120
1 files changed, 79 insertions, 41 deletions
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") %}
- <h1>Yaroslav's weblog</h1>
- {% elif section.permalink is containing("food") %}
- <h1>Yaroslav's recipe book</h1>
- {% else %}
- <h1>Yaroslav's website</h1>
- {% endif %}
+ {% if section.permalink is containing("weblog") %}
+ <h1>
+ {% if lang == "ru" %}
+ Веб-журнал Ярослава
+ {% elif lang == "es" %}
+ Weblog de Yaroslav
+ {% else %}
+ Yaroslav's weblog
+ {% endif %}
+ </h1>
+ {% elif section.permalink is containing("food") %}
+ <h1>
+ {% if lang == "ru" %}
+ Книга рецептов Ярослава
+ {% elif lang == "es" %}
+ Recetario de Yaroslav
+ {% else %}
+ Yaroslav's recipe book
+ {% endif %}
+ </h1>
+ {% else %}
+ <h1>Yaroslav's website</h1>
+ {% endif %}
{% endblock %}
{% block content %}
-<div class="posts-list">
- {% for post in paginator.pages %}
- <div class="post-container">
- <h2>
- <a href="{{ post.permalink }}">{{ post.title }}</a>
- <span class="publish-date">{{ post.date | date }}</span>
- </h2>
- {% if post.summary %}
- {{ post.summary | safe }}
- {% endif %}
- </div>
- {% endfor %}
-</div>
-{% if paginator %}
- {% if paginator.number_pagers > 1 %}
- <div class="paginator">
- {% if paginator.previous %}
- <a href="{{ paginator.first }}"><span class="icon">|←</span> First</a>
- <a href="{{ paginator.previous }}"><span class="icon">←</span> Page {{ paginator.current_index - 1 }}</a>
- {% endif %}
- {% if paginator.next %}
- <a href="{{ paginator.next }}">Page {{ paginator.current_index + 1 }} <span class="icon">→</span></a>
- <a href="{{ paginator.last }}">Last <span class="icon">→|</span></a>
- {% endif %}
- </div>
- {% endif %}
-{% endif %}
+ <div class="posts-list">
+ {% for post in paginator.pages %}
+ <div class="post-container">
+ <h2>
+ <a href="{{ post.permalink }}">{{ post.title }}</a>
+ <span class="publish-date">{{ post.date | date }}</span>
+ </h2>
+ {% if post.summary %}
+ {{ post.summary | safe }}
+ {% endif %}
+ </div>
+ {% endfor %}
+ </div>
+ {% if paginator %}
+ {% if paginator.number_pagers > 1 %}
+ <div class="paginator">
+ {% if paginator.previous %}
+ <a href="{{ paginator.first }}">
+ <span class="icon">|←</span> First
+ </a>
+ <a href="{{ paginator.previous }}">
+ <span class="icon">←</span> Page
+ {{ paginator.current_index - 1 }}
+ </a>
+ {% endif %}
+ {% if paginator.next %}
+ <a href="{{ paginator.next }}">
+ Page {{ paginator.current_index + 1 }}
+ <span class="icon">→</span>
+ </a>
+ <a href="{{ paginator.last }}">
+ Last <span class="icon">→|</span>
+ </a>
+ {% endif %}
+ </div>
+ {% endif %}
+ {% endif %}
{% endblock %}