summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:03:23 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:03:23 +0200
commit982b7ad783f0135af08700465f0ded1a4371000f (patch)
tree202075c63030bc9afb138be8c9143b41fe89de9a /templates
parenta19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc (diff)
downloadrabalderz-982b7ad783f0135af08700465f0ded1a4371000f.tar.gz
rabalderz-982b7ad783f0135af08700465f0ded1a4371000f.tar.bz2
rabalderz-982b7ad783f0135af08700465f0ded1a4371000f.zip
More i18n stuff, add links languages for index.
Diffstat (limited to 'templates')
-rw-r--r--templates/header.html2
-rw-r--r--templates/index.html8
2 files changed, 9 insertions, 1 deletions
diff --git a/templates/header.html b/templates/header.html
index 80e6eb5..ad0951f 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -1,4 +1,4 @@
<header id="site-header" class="site-header">
<div class="site-title">{{ config.title }}</div>
- <div class="site-description">{{ config.description }}</div>
+ <div class="site-description">{{ trans(key="description", lang=lang) }}</div>
</header>
diff --git a/templates/index.html b/templates/index.html
index c932b7c..48857c4 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,6 +4,14 @@
<section id="home-blurb">
{{ section.content | safe }}
</section>
+<section id="translations">
+ This page is also available in:
+ {% for l in section.translations %}
+ {% if l.lang != lang %}
+ <a href="{{ l.permalink | safe }}">{{ trans(key=l.lang) }}</a>
+ {% endif %}
+ {% endfor %}
+</section>
<section class="subsections">
{% for sub in section.subsections %}