Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 485 Bytes
{% comment %} blog posts do not end with /index.html, breaking content-type detection {% endcomment %}
{% capture pageurl %}{{ page.url }}{% unless page.url contains '/index.html' %}/index.html{% endunless %}{% endcapture %}
{% if site.lang == "nl" %}
<a href="{{ site.baseurl_root }}/en{{ pageurl }}?lang=en">
<i class="fa fa-language"></i> English
</a>
{% else %}
<a href="{{ site.baseurl_root }}{{ pageurl }}?lang=nl">
<i class="fa fa-language"></i> Nederlands
</a>
{% endif %}