implement multilanguage support in menu

This commit is contained in:
L3D 2021-02-14 21:30:06 +01:00
parent b246c05b5e
commit 5a247b9dcf
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1

View File

@ -3,16 +3,20 @@
<div class="header__top_box"> <div class="header__top_box">
<div class="header__logo_box"> <div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite"> <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> </a>
</div> </div>
<nav class="header__secondary_nav"> <nav class="header__secondary_nav">
<ul class="secondary_nav__navlist"> <ul class="secondary_nav__navlist">
<!-- {% for alt in get_alts(this) %}
{%- if this.alt != alt %}
<li class="secondary_nav__navitem"> <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> </li>
--> {% endif -%}
{% endfor %}
<li class="secondary_nav__navitem"> <li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a> <a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a>
</li> </li>