Fixed tabs not showing external links

This commit is contained in:
squidfunk 2020-08-26 20:06:47 +02:00
parent 95cc609087
commit cdb426d54e
2 changed files with 14 additions and 0 deletions

View File

@ -31,4 +31,10 @@
{% endif %}
</li>
{% endif %}
{% elif nav_item.url.startswith("http") %}
<li class="md-tabs__item">
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
{{ nav_item.title }}
</a>
</li>
{% endif %}

View File

@ -66,4 +66,12 @@
{% endif %}
</li>
{% endif %}
<!-- Main navigation item with external link -->
{% elif nav_item.url.startswith("http") %}
<li class="md-tabs__item">
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
{{ nav_item.title }}
</a>
</li>
{% endif %}