reimplement multilanguage support again

This commit is contained in:
L3D 2021-02-18 19:25:33 +01:00
parent fa5bbc8b89
commit 117c5af301
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1
2 changed files with 9 additions and 5 deletions

View File

@ -3,16 +3,20 @@
<div class="header__top_box">
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|url }}" style="height: 7rem;">
{% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}" style="height: 7rem;">
{%- endif %}
</a>
</div>
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
<!--
{% for alt in get_alts(this) %}
{%- if this.alt != alt %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="#">EN</a>
<a class="secondary_nav__navlink" href="{{ '.'|url(alt=alt) }}">{{ alt|title|upper }}</a>
</li>
-->
{% endif -%}
{% endfor %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a>
</li>

View File

@ -10,7 +10,7 @@
</div>
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
{% for alt in get_alts(this) %}
{% for alt in get_alts(this) %}
{%- if this.alt != alt %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="{{ '.'|url(alt=alt) }}">{{ alt|title|upper }}</a>