aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-12-24 03:32:22 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-01-02 00:13:30 +0300
commit8acb898a2f2730e2a853c844f0e8b9bb2d690f49 (patch)
tree8adc60ea6bf248622973af99e8e54c80623a86cd /templates/base.html
parent89b0939c584df21981d65511576a6272ce57cdbd (diff)
downloadyaroslavps.com-8acb898a2f2730e2a853c844f0e8b9bb2d690f49.tar.gz
yaroslavps.com-8acb898a2f2730e2a853c844f0e8b9bb2d690f49.zip
Huge html+css revamp
* Plus added links to new photo gallery and donate page. * Title fix
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>
Это русскоязычная версия сайта. Если вам интересно