Skip to content

Commit 7dc996c

Browse files
committed
Make Q logo link to the main page in the current language
1 parent 264def8 commit 7dc996c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_includes/header.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@
4242
</div>
4343
</div>
4444
{% endif %}
45-
<a class="page-link" href="/">
45+
{% if page.lang == nil or page.lang == "" or page.lang == "en" %}
46+
{% assign linktohome = "/" %}
47+
{% else %}
48+
{% assign linktohome = "/" | append: page.lang | append: "/" %}
49+
{% endif %}
50+
<a class="page-link" href="{{ linktohome }}">
4651
<img src="/attachment/icons/128x128/apps/qubes-logo-icon.png" width="44" height="44" alt="Qubes OS Project">
4752
<span><strong>Qubes</strong> OS</span>
4853
</a>

0 commit comments

Comments
 (0)