aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-20 17:49:03 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-20 18:00:32 +0300
commit4107aceab1d22cc4614afaa3d0779d4aee3469b7 (patch)
treef636b116efbc0d179e5aedd2f4b95718cc13aa8c /templates/base.html
parent66a4844e829495328d738f31728c9c03c11c2771 (diff)
downloadyaroslavps.com-4107aceab1d22cc4614afaa3d0779d4aee3469b7.tar.gz
yaroslavps.com-4107aceab1d22cc4614afaa3d0779d4aee3469b7.zip
Translated to Russian and Spanish
Translated all templates so that the site is available in Russian and Spanish once more. I am still not committed to write/translate everything in three different languages, but there have been some things that I've been meaning to write in Russian.
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html234
1 files changed, 158 insertions, 76 deletions
diff --git a/templates/base.html b/templates/base.html
index d8f27ba..010677b 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,83 +1,165 @@
<!DOCTYPE html>
{% set permalink = "/weblog/" %}
{% if section %}
- {% set permalink = section.permalink %}
+ {% set permalink = section.permalink %}
{% elif page %}
- {% set permalink = page.permalink %}
+ {% set permalink = page.permalink %}
{% endif %}
<html>
- <head>
- <meta charset="utf-8">
- <meta content="width=device-width, initial-scale=1" name="viewport">
- <title>
- {% block title %}
- {{ config.title }}
- {% endblock %}
- </title>
- <link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
- <link rel="icon" type="image/png" href="{{ get_url(path="favicon32x32.png") }}">
- <link rel="icon" type="image/png" href="{{ get_url(path="favicon64x64.png") }}">
- {% block extrahead %}
- {% endblock %}
- </head>
- <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">
- {% block content %}
- {% endblock %}
- </div>
- <div class="sidebar-container">
- <div class="sticky-wrapper">
- {% block sbdesc %}
- {% if permalink is containing("weblog") %}
- <p>Hello, my name is Yaroslav de la Peña Smirnov, welcome to my weblog.
- Sometimes I write software, sometimes I might write my mind here. </p>
- {% elif permalink is containing("food") %}
- <p>Here I keep some of the recipes for food that I cook. Nothing really
- special in here, just food that I find delicious, and generally not very
- expensive nor time consuming to cook.</p>
- {% endif %}
- {% endblock %}
- <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>
- <h3>Navigation</h3>
- <ul class="navigation-list">
- <li><a href="/">Landing page</a></li>
- <li><a href="/weblog/">Weblog</a>
- <ul>
- <li><a href="/weblog/archive/">Archive</a></li>
- </ul>
- </li>
- <li><a href="/food/">Recipe book</a>
- <ul>
- <li><a href="/food/archive/">Archive</a></li>
- </ul>
- </li>
- </ul>
- <h3>RSS Feeds</h3>
- <ul class="rss-list">
- <li><a href="/weblog/feed.xml">Weblog RSS</a></li>
- <li><a href="/food/feed.xml">Recipe book RSS</a></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>
- </div>
- </div>
- {% endblock %}
- </div>
- </body>
+ <head>
+ <meta charset="utf-8">
+ <meta content="width=device-width, initial-scale=1" name="viewport">
+ <title>
+ {% block title %}
+ {{ config.title }}
+ {% endblock %}
+ </title>
+ <link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
+ <link rel="icon" type="image/png" href="{{ get_url(path="favicon32x32.png") }}">
+ <link rel="icon" type="image/png" href="{{ get_url(path="favicon64x64.png") }}">
+ {% block extrahead %}
+ {% endblock %}
+ </head>
+ <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">
+ {% 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>
+ <ul class="navigation-list">
+ <li>
+ {% if lang == "ru" %}
+ <a href="/ru/">Главная</a>
+ {% elif lang == "es" %}
+ <a href="/es/">Inicio</a>
+ {% else %}
+ <a href="/">Home page</a>
+ {% endif %}
+ <ul>
+ {% if lang != "en" %}
+ <li><a href="/">English</a></li>
+ {% endif %}
+ {% if lang != "es" %}
+ <li><a href="/es/">Español</a></li>
+ {% endif %}
+ {% if lang != "ru" %}
+ <li><a href="/ru/">Русский</a></li>
+ {% endif %}
+ </ul>
+ </li>
+ <li>
+ {% if lang == "ru" %}
+ <a href="/ru/weblog/">Веб-журнал</a>
+ {% elif lang == "es" %}
+ <a href="/es/weblog/">Weblog</a>
+ {% else %}
+ <a href="/weblog/">Weblog</a>
+ {% endif %}
+ <ul>
+ <li>
+ {% if lang == "ru" %}
+ <a href="/ru/weblog/archive/">Архив</a>
+ {% elif lang == "es" %}
+ <a href="/es/weblog/archive/">Archivo</a>
+ {% else %}
+ <a href="/weblog/archive/">Archive</a>
+ {% endif %}
+ </li>
+ </ul>
+ </li>
+ <li>
+ {% if lang == "ru" %}
+ <a href="/ru/food/">Книга рецептов</a>
+ {% elif lang == "es" %}
+ <a href="/es/food/">Recetario</a>
+ {% else %}
+ <a href="/food/">Recipe book</a>
+ {% endif %}
+ <ul>
+ <li>
+ {% if lang == "ru" %}
+ <a href="/ru/food/archive/">Архив</a>
+ {% elif lang == "es" %}
+ <a href="/es/food/archive/">Archivo</a>
+ {% else %}
+ <a href="/food/archive/">Archive</a>
+ {% endif %}
+ </li>
+ </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>
+ </div>
+ </div>
+ {% endblock %}
+ </div>
+ </body>
</html>