summaryrefslogtreecommitdiffstats
path: root/blog/_includes/language-switcher.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/_includes/language-switcher.html')
-rw-r--r--blog/_includes/language-switcher.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/blog/_includes/language-switcher.html b/blog/_includes/language-switcher.html
new file mode 100644
index 0000000..22f2e05
--- /dev/null
+++ b/blog/_includes/language-switcher.html
@@ -0,0 +1,7 @@
+<span class="language-switcher">
+ {% if site.lang == "nb" %}
+ <a href="{{ site.baseurl_root | append: "en" }}">{% t global.english %}</a>
+ {% else if site.lang == "en" %}
+ <a href="{{ site.baseurl_root }}">{% t global.norwegian %}</a>
+ {% endif %}
+</span> \ No newline at end of file