aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html106
1 files changed, 37 insertions, 69 deletions
diff --git a/templates/base.html b/templates/base.html
index 908e93c..efb1e7d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,7 +11,7 @@
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>
{% block title %}
- {{ config.title }}
+ Yaroslav de la Peña Smirnov
{% endblock %}
</title>
<link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
@@ -23,26 +23,18 @@
<body>
<div class="main-container">
{% block page %}
- <div class="header-container">
- {% block header %}
- <h1><a href="/">Yaroslav de la Peña Smirnov</a></h1>
- {% endblock %}
- </div>
<div class="content-container">
+ <div class="header-container">
+ {% block header %}
+ <h1><a href="/">Yaroslav de la Peña Smirnov</a></h1>
+ {% endblock %}
+ </div>
{% block content %}
{% endblock %}
</div>
<div class="sidebar-container">
<div class="sticky-wrapper">
- <h3>
- {% if lang == "ru" %}
- Навигация
- {% elif lang == "es" %}
- En este sitio
- {% else %}
- Navigation
- {% endif %}
- </h3>
+ <h3>{{ trans(key="whats_here", lang=lang) }}</h3>
<ul class="navigation-list">
<li>
{% if lang == "ru" %}
@@ -50,19 +42,19 @@
{% elif lang == "es" %}
<a href="/es/">Inicio</a>
{% else %}
- <a href="/">Home page</a>
+ <a href="/">Home</a>
{% endif %}
- <ul>
+ <span class="extra-link">[
{% if lang != "en" %}
- <li><a href="/">English</a></li>
- {% endif %}
- {% if lang != "es" %}
- <li><a href="/es/">Español</a></li>
+ <a href="/">en</a>
{% endif %}
{% if lang != "ru" %}
- <li><a href="/ru/">Русский</a></li>
+ <a href="/ru/">ru</a>
+ {% endif %}
+ {% if lang != "es" %}
+ <a href="/es/">es</a>
{% endif %}
- </ul>
+ ]</span>
</li>
<li>
{% if lang == "ru" %}
@@ -72,6 +64,17 @@
{% else %}
<a href="/weblog/">Weblog</a>
{% endif %}
+ <span class="extra-link">[
+ {% if lang != "en" %}
+ <a href="/weblog">en</a>
+ {% endif %}
+ {% if lang != "ru" %}
+ <a href="/ru/weblog">ru</a>
+ {% endif %}
+ {% if lang != "es" %}
+ <a href="/es/weblog">es</a>
+ {% endif %}
+ ]</span>
<ul>
<li>
{% if lang == "ru" %}
@@ -92,6 +95,17 @@
{% else %}
<a href="/food/">Recipe book</a>
{% endif %}
+ <span class="extra-link">[
+ {% if lang != "en" %}
+ <a href="/food">en</a>
+ {% endif %}
+ {% if lang != "ru" %}
+ <a href="/ru/food">ru</a>
+ {% endif %}
+ {% if lang != "es" %}
+ <a href="/es/food">es</a>
+ {% endif %}
+ ]</span>
<ul>
<li>
{% if lang == "ru" %}
@@ -105,58 +119,12 @@
</ul>
</li>
</ul>
- <h3>
- {% if lang == "ru" %}
- RSS-лента
- {% elif lang == "es" %}
- RSS
- {% else %}
- RSS feeds
- {% endif %}
- </h3>
- <ul class="rss-list">
- <li>
- {% if lang == "ru" %}
- <a href="/ru/weblog/feed.xml">RSS веб-журнала</a>
- {% elif lang == "es" %}
- <a href="/es/weblog/feed.xml">RSS del weblog</a>
- {% else %}
- <a href="/weblog/feed.xml">Weblog RSS</a>
- {% endif %}
- </li>
- <li>
- {% if lang == "ru" %}
- <a href="/ru/food/feed.xml">RSS книги рецептов</a>
- {% elif lang == "es" %}
- <a href="/es/food/feed.xml">RSS del recetario</a>
- {% else %}
- <a href="/food/feed.xml">Recipe book RSS</a>
- {% endif %}
- </li>
- </ul>
<h3>Email</h3>
<a href="mailto:yps@yaroslavps.com">yps@yaroslavps.com</a>
<h3>PGP</h3>
<a href="https://www.yaroslavps.com/files/yaroslavpub.gpg">
BD900E5D624046DC
</a>
- <h3>
- {% if lang == "ru" %}
- Другие ссылки
- {% elif lang == "es" %}
- Otros vínculos
- {% else %}
- Other stuff
- {% endif %}
- </h3>
- <div class="links-container">
- <a href="https://github.com/Yaroslav-95" title="GitHub">
- <span class="icon"><img src="/svg/icons/github.svg"/></span>
- </a>
- <a href="https://git.yaroslavps.com/" title="Git server">
- <span class="icon"><img src="/svg/icons/git.svg"/></span>
- </a>
- </div>
{% if lang == "ru" %}
<p>
Это русскоязычная версия сайта. Если вам интересно