Skip to content

Commit 4da83d1

Browse files
committed
Make Q logo link to the main page in the current language
1 parent dbff3b4 commit 4da83d1

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
@@ -34,7 +34,12 @@
3434
</div>
3535
</div>
3636
{% endif %}
37-
<a class="page-link" href="/">
37+
{% if page.lang == nil or page.lang == "" or page.lang == "en" %}
38+
{% assign linktohome = "/" %}
39+
{% else %}
40+
{% assign linktohome = "/" | append: page.lang | append: "/" %}
41+
{% endif %}
42+
<a class="page-link" href="{{ linktohome }}">
3843
<img src="/attachment/icons/128x128/apps/qubes-logo-icon.png" width="44" height="44" alt="Qubes OS Project">
3944
<span><strong>Qubes</strong> OS</span>
4045
</a>

0 commit comments

Comments
 (0)