Compare commits

...

1 Commits

Author SHA1 Message Date
Stephan
0feb5073ce fix: added query to check if alt pages really exist
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-19 21:12:19 +02:00

View File

@ -11,7 +11,7 @@
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
{% for alt in get_alts(this) %}
{%- if this.alt != alt %}
{%- 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>