about summary refs log tree commit diff stats
path: root/templates/language_switcher.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/language_switcher.html')
-rw-r--r--templates/language_switcher.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/language_switcher.html b/templates/language_switcher.html
new file mode 100644
index 0000000..b82ddfc
--- /dev/null
+++ b/templates/language_switcher.html
@@ -0,0 +1,11 @@
+{% if config.extra.language_switcher %}
+  <nav>
+    {%- for tr in config.extra.translations %}
+      {%- if tr.code == lang %}
+        <strong>{{ tr.name }}</strong>
+      {%- else %}
+        <a href="{{ get_url(path="/", lang=tr.code) }}">{{ tr.name }}</a>
+      {%- endif %}
+    {%- endfor %}
+  </nav>
+{% endif %}