1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-23 04:44:56 +01:00
mkdocs-material/material/partials/tabs-item.html

29 lines
737 B
HTML
Raw Normal View History

2019-09-28 19:42:54 +02:00
{#-
This file was automatically generated - do not edit
-#}
{% if not class %}
{% set class = "md-tabs__link" %}
{% if nav_item.active %}
{% set class = class ~ " md-tabs__link--active" %}
{% endif %}
{% endif %}
{% if nav_item.children %}
{% set title = title | d(nav_item.title) %}
{% set nav_item = nav_item.children | first %}
{% if nav_item.children %}
{% include "partials/tabs-item.html" %}
{% else %}
<li class="md-tabs__item">
<a href="{{ nav_item.url | url }}" class="{{ class }}">
2020-11-07 16:09:06 +01:00
{{ title }}
</a>
</li>
{% endif %}
{% else %}
2020-08-26 20:06:47 +02:00
<li class="md-tabs__item">
<a href="{{ nav_item.url | url }}" class="{{ class }}">
2020-08-26 20:06:47 +02:00
{{ nav_item.title }}
</a>
</li>
{% endif %}