aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/base.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
commit5716bfd7548e386b12703e76cdf273bce839116c (patch)
tree5b21a9a8f6fd53e225f43385537d39fde70fa7c3 /templates/base.html
downloadsaucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.tar.gz
saucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.zip
Initial commit
Essential functional website.
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..43bf603
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,69 @@
+{% if lang != "en" %}
+{% set url_prefix = "/" ~ lang ~ "/" %}
+{% else %}
+{% set url_prefix = "/" %}
+{% endif %}
+<!DOCTYPE html>
+<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/main.css") }}">
+ </head>
+ <body>
+ <div class="header-container">
+ <div class="brand-container">
+ <div class="brand">
+ <a href="{{ url_prefix }}">{{ config.title }}</a>
+ </div>
+ </div>
+ <div class="title-container">
+ {% block h1title %}
+ {% endblock %}
+ </div>
+ <nav class="navbar">
+ <a href="{{ url_prefix }}">
+ {{ trans(key="home", lang=lang) }}
+ </a>
+ <a href="{{ url_prefix }}recipes/">
+ {{ trans(key="recipes", lang=lang) }}
+ </a>
+ <a href="{{ url_prefix }}recipes/archive">
+ {{ trans(key="archive", lang=lang) }}
+ </a>
+ <a href="{{ url_prefix }}about/">
+ {{ trans(key="about", lang=lang) }}
+ </a>
+ <a href="{{ url_prefix }}recipes/atom.xml">RSS</a>
+ </nav>
+ </div>
+ <div class="body-container">
+ {% block body %}
+ {% endblock %}
+ </div>
+ <div class="footer-container">
+ <hr>
+ <p>
+ <!-- TODO: do this programmaticaly -->
+ {% if lang == "ru" %}
+ Есть вопросы? Напиши мне на
+ <a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, или глянь в
+ список рассылки
+ <a
+ href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">здесь</a>.
+ {% elif lang == "es" %}
+ ¿Dudas, preguntas? Envíame un correo electrónico a
+ <a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, o hechale un
+ vistazo a la lista de correo
+ <a href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">aquí</a>.
+ {% else %}
+ Have any questions? Send me an email at
+ <a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, or checkout the
+ comments mailing list
+ <a href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">here</a>.
+ {% endif %}
+ </p>
+ </div>
+ </body>
+</html>