mkdocs-material/material/partials/tabs-item.html

35 lines
1.1 KiB
HTML
Raw Normal View History

{#-
This file was automatically generated - do not edit
-#}
{% if nav_item.is_homepage %}
<li class="md-tabs__item">
{% if not page.ancestors | length and nav | selectattr("url", page.url) %}
2019-08-27 18:43:20 +03:00
<a href="{{ nav_item.url | url }}" class="md-tabs__link md-tabs__link--active">
{{ nav_item.title }}
</a>
{% else %}
2019-08-27 18:43:20 +03:00
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
{{ nav_item.title }}
</a>
{% endif %}
</li>
{% elif nav_item.children and nav_item.children | length > 0 %}
{% set title = title | default(nav_item.title) %}
{% if (nav_item.children | first).children %}
{% set nav_item = nav_item.children | first %}
{% include "partials/tabs-item.html" %}
{% else %}
<li class="md-tabs__item">
{% if nav_item.active %}
2019-08-27 18:43:20 +03:00
<a href="{{ (nav_item.children | first).url | url }}" class="md-tabs__link md-tabs__link--active">
{{ title }}
</a>
{% else %}
2019-08-27 18:43:20 +03:00
<a href="{{ (nav_item.children | first).url | url }}" class="md-tabs__link">
{{ title }}
</a>
{% endif %}
</li>
{% endif %}
{% endif %}