mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
26 lines
940 B
HTML
26 lines
940 B
HTML
{% if nav_item.is_homepage %}
|
|
<li class="md-tabs__item">
|
|
{% if not page.ancestors | length and nav | selectattr("url", page.url) %}
|
|
<a href="{{ nav_item.url }}" title="{{ nav_item.title }}" class="md-tabs__link md-tabs__link--active">
|
|
{{ nav_item.title }}
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ nav_item.url }}" title="{{ nav_item.title }}" class="md-tabs__link">
|
|
{{ nav_item.title }}
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
{% elif nav_item.children and nav_item.children | length > 0 %}
|
|
<li class="md-tabs__item">
|
|
{% if nav_item.active %}
|
|
<a href="{{ (nav_item.children | first).url }}" title="{{ nav_item.title }}" class="md-tabs__link md-tabs__link--active">
|
|
{{ nav_item.title }}
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ (nav_item.children | first).url }}" title="{{ nav_item.title }}" class="md-tabs__link">
|
|
{{ nav_item.title }}
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|