aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/weblog.html')
-rw-r--r--templates/weblog.html63
1 files changed, 55 insertions, 8 deletions
diff --git a/templates/weblog.html b/templates/weblog.html
index c7abcc2..2afe42c 100644
--- a/templates/weblog.html
+++ b/templates/weblog.html
@@ -23,27 +23,74 @@
{% block header %}
{% if section.permalink is containing("weblog") %}
<h1>
- {% if lang == "ru" %}
+ {%- if lang == "ru" -%}
Веб-журнал Ярослава
- {% elif lang == "es" %}
+ {%- elif lang == "es" -%}
Weblog de Yaroslav
- {% else %}
+ {%- else -%}
Yaroslav's weblog
- {% endif %}
+ {%- endif -%}
</h1>
{% elif section.permalink is containing("food") %}
<h1>
- {% if lang == "ru" %}
+ {%- if lang == "ru" -%}
Книга рецептов Ярослава
- {% elif lang == "es" %}
+ {%- elif lang == "es" -%}
Recetario de Yaroslav
- {% else %}
+ {%- else -%}
Yaroslav's recipe book
- {% endif %}
+ {%- endif -%}
</h1>
{% else %}
<h1>Yaroslav's website</h1>
{% endif %}
+ <ul class="nav-container">
+ <li>
+ <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/">
+ {{ trans(key="back_home", lang=lang) }}
+ </a>
+ </li>
+ {% if section.permalink is containing("weblog") %}
+ <li>
+ <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/weblog/archive">{{ trans(key="archive", lang=lang) }}</a>
+ </li>
+ {% if lang != "en" %}
+ <li>
+ <a href="/weblog/">🇺🇸 English</a>
+ </li>
+ {% endif %}
+ {% if lang != "ru" %}
+ <li>
+ <a href="/ru/weblog/">🇷🇺 Русский</a>
+ </li>
+ {% endif %}
+ {% if lang != "es" %}
+ <li>
+ <a href="/es/weblog/">🇲🇽 Español</a>
+ </li>
+ {% endif %}
+ {% elif section.permalink is containing("food") %}
+ <li>
+
+ <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/food/archive">{{ trans(key="archive", lang=lang) }}</a>
+ </li>
+ {% if lang != "en" %}
+ <li>
+ <a href="/food/">🇺🇸 English</a>
+ </li>
+ {% endif %}
+ {% if lang != "ru" %}
+ <li>
+ <a href="/food/ru/">🇷🇺 Русский</a>
+ </li>
+ {% endif %}
+ {% if lang != "es" %}
+ <li>
+ <a href="/food/es/">🇲🇽 Español</a>
+ </li>
+ {% endif %}
+ {% endif %}
+ </ul>
{% endblock %}
{% block content %}
<div class="posts-list">