summaryrefslogtreecommitdiffstats
path: root/templates/translation-links.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-08 12:46:18 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-08 12:49:42 +0200
commita7b926e48eb1a34a72c8123b44438b3d8afef224 (patch)
tree7eb689425ad51a32105aebdc4c6d34dab5f07150 /templates/translation-links.html
parent90a04beaed62c8c93140800eb11c7f4153d06b62 (diff)
downloadrabalderz-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/translation-links.html')
-rw-r--r--templates/translation-links.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/translation-links.html b/templates/translation-links.html
new file mode 100644
index 0000000..c87f01a
--- /dev/null
+++ b/templates/translation-links.html
@@ -0,0 +1,8 @@
+<span class="translations">
+ {% for l in translations %}
+ {% if l.lang != lang %}
+ {{ trans(key="read_in", lang=l.lang) }}
+ <a href="{{ l.permalink | safe }}">{{ trans(key=l.lang) }}</a>
+ {% endif %}
+ {% endfor %}
+</span>