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