fix: added query to check if alt pages really exist #74

Merged
muli merged 1 commits from trans_links into main 2021-07-19 22:19:20 +02:00
Showing only changes of commit ebad7d502c - Show all commits

View File

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