webseite/templates/header_slim.html
Stephan 0feb5073ce
All checks were successful
continuous-integration/drone/push Build is passing
fix: added query to check if alt pages really exist
2021-07-19 21:12:19 +02:00

35 lines
1.4 KiB
HTML

{% extends "layout.html" %}
{% block header %}
<div class="header__top_box">
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
{% 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 and site.get('.'|url(alt=alt)) %}
<li class="secondary_nav__navitem">
<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://forum.wtf-eg.de/">Login</a>
</li>
</ul>
</nav>
</div>
<div class="header__slim_box">
{% include "blocks/navigation.html" %}
<div class="slim_box__top_bar_left"></div>
<div class="slim_box__top_bar_middle"></div>
<div class="slim_box__top_bar_right"></div>
<div class="slim_box__unicorns"></div>
</div>
{% endblock %}