aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-06 04:54:57 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-06 04:54:57 +0300
commit0a88ade33bff3f714e701f8c4b210e824c3d231d (patch)
tree5b5f28e287a22ebb963f479d1872603101516bba /templates/weblog.html
parentc7cae0942d6cbc5efbf186fdbf6ea3c614a4f762 (diff)
downloadyaroslavps.com-0a88ade33bff3f714e701f8c4b210e824c3d231d.tar.gz
yaroslavps.com-0a88ade33bff3f714e701f8c4b210e824c3d231d.zip
CSS and templates revamp
Had been thinking for a long while (prob about 2y now) that I wanted for there to be no distractions while reading the content (i.e. no sidebar). Didn't know how to handle navigation, though. Have made a lot of changes and am actually pretty satisfied with the results. Looks much cleaner now, and for those who know how to use browsers is actually more comfortable, since you can just press the end key and you are taken to the footer where all the navigation is. Of course, where it is relevant there are some navigation links at the top of the page. Phone users have it a little more uncomfortable, but phone usage overall has and always will be uncomfy. Such is the nature of small touch screens.
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">