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