summaryrefslogtreecommitdiffstats
path: root/blog/_includes
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-08-28 15:12:37 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-08-28 15:12:37 +0200
commit1683ed7f0aa556838f163a283399cf0037602ecf (patch)
tree10212cf8df3eec9c92a2559380916487af90fc1a /blog/_includes
parent0ecf7e6c4ea2a64f4ec186ddad987a9c3ecdf46c (diff)
downloadnorsk-urskog-main-1683ed7f0aa556838f163a283399cf0037602ecf.tar.gz
norsk-urskog-main-1683ed7f0aa556838f163a283399cf0037602ecf.tar.bz2
norsk-urskog-main-1683ed7f0aa556838f163a283399cf0037602ecf.zip
Fix language switcher
Diffstat (limited to 'blog/_includes')
-rw-r--r--blog/_includes/language-switcher.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/blog/_includes/language-switcher.html b/blog/_includes/language-switcher.html
index 604c914..014bed6 100644
--- a/blog/_includes/language-switcher.html
+++ b/blog/_includes/language-switcher.html
@@ -1,7 +1,7 @@
<span class="language-switcher">
- {% if site.lang == "nb" %}
- <a href="{{ site.baseurl_root | append: "/en" }}">English</a>
- {% else if site.lang == "en" %}
- <a href="{{ site.baseurl_root | append: "/" }}">Norsk</a>
+ {% if page.lang == "no" %}
+ <a href="{{ site.baseurl | append: "/en" }}">English</a>
+ {% else if page.lang == "en" %}
+ <a href="{{ site.baseurl | append: "/" }}">Norsk</a>
{% endif %}
</span>