diff options
Diffstat (limited to 'templates/weblog_archive.html')
-rw-r--r-- | templates/weblog_archive.html | 42 |
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 %} |