Skip to content

Commit dd899ad

Browse files
authored
Merge pull request #713 from lqez/fix-root-link-for-alt-langs
Fix back to the index page link for non-English languages
2 parents 9cd9f5f + f600490 commit dd899ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_includes/nav.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
{% if page.layout != 'index' %}
1919
<div class="float-sm-left pl-3 breadcrumb">
2020
<p class="my-0 py-3 py-sm-4 text-gray">
21+
{% if page.lang != 'en' %}
22+
<a href="/{{ page.lang }}/" class="text-gray">{{ site.title }}</a>
23+
{% else %}
2124
<a href="/" class="text-gray">{{ site.title }}</a>
25+
{% endif %}
2226
</p>
2327
</div>
2428
{% endif %}

0 commit comments

Comments
 (0)