diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-08 12:46:18 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-08 12:49:42 +0200 |
commit | a7b926e48eb1a34a72c8123b44438b3d8afef224 (patch) | |
tree | 7eb689425ad51a32105aebdc4c6d34dab5f07150 /templates/base.html | |
parent | 90a04beaed62c8c93140800eb11c7f4153d06b62 (diff) | |
download | rabalderz-a7b926e48eb1a34a72c8123b44438b3d8afef224.tar.gz rabalderz-a7b926e48eb1a34a72c8123b44438b3d8afef224.tar.bz2 rabalderz-a7b926e48eb1a34a72c8123b44438b3d8afef224.zip |
Add translation links in site header.
Add translation links in the site header for sections and index.
This also moved the header back into the base template, as it seems zola
is not able to handle blocks defined in included templates. At least
that's what it looked like. Didn't test much.
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 1d7b588..e1280e2 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,13 @@ <body> - {% include "header.html" %} + <header id="site-header" class="site-header"> + <div class="site-title">{{ config.title }}</div> + <div class="site-bar"> + <div class="site-description">{{ trans(key="description", lang=lang) }}</div> + <div class="language">{% block language %}{% endblock language %}</div> + </div> + </header> <div class="page-content"> <div class="wrapper"> |