aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog_archive.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_archive.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_archive.html')
-rw-r--r--templates/weblog_archive.html42
1 files changed, 32 insertions, 10 deletions
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 %}
-<h1>Yaroslav's weblog archive</h1>
+<h1>
+ {% if lang == "ru" %}
+ Архив веб-журнала Ярослава
+ {% elif lang == "es" %}
+ Archivo del weblog de Yaroslav
+ {% else %}
+ Yaroslav's weblog archive
+ {% endif %}
+</h1>
{% 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) %}
<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 %}