mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed tabs not showing external links
This commit is contained in:
parent
95cc609087
commit
cdb426d54e
@ -31,4 +31,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
@ -66,4 +66,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user