From 78c50bf4993790a8a19f676f1ffc6099cf16978e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 11 Sep 2015 19:29:00 +0200 Subject: Add language switcher to menu bar. --- blog/_includes/language-switcher.html | 7 +++++++ blog/_includes/menubar.html | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 blog/_includes/language-switcher.html (limited to 'blog/_includes') 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 @@ + + {% if site.lang == "nb" %} + {% t global.english %} + {% else if site.lang == "en" %} + {% t global.norwegian %} + {% endif %} + \ No newline at end of file diff --git a/blog/_includes/menubar.html b/blog/_includes/menubar.html index 76d49cc..cc7de78 100644 --- a/blog/_includes/menubar.html +++ b/blog/_includes/menubar.html @@ -1,8 +1,9 @@ -- cgit v1.2.3