Compare commits

...

1 Commits

Author SHA1 Message Date
Stephan
ebad7d502c fix: added query to check if alt pages really exist
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-19 22:13:40 +02:00

View File

@ -10,13 +10,13 @@
</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="{{ '.'|url(alt=alt) }}">{{ alt|title|upper }}</a>
</li>
{% endif -%}
{% endfor %}
{% for alt in get_alts(this) %}
{%- if this.alt != alt and not (this.record.path == '/blog' or this.record.path == '/podcast') %}
<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>