mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-15 00:51:26 +01:00
14 lines
369 B
HTML
14 lines
369 B
HTML
{% set class = "md-tabs" %}
|
|
{% if page.ancestors | length > 0 %}
|
|
{% set class = "md-tabs md-tabs--active" %}
|
|
{% endif %}
|
|
<nav class="{{ class }}" data-md-component="tabs">
|
|
<div class="md-tabs__inner md-grid">
|
|
<ul class="md-tabs__list">
|
|
{% for nav_item in nav %}
|
|
{% include "partials/tabs-item.html" %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</nav>
|