mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
33 lines
875 B
HTML
33 lines
875 B
HTML
{% if nav_item.children %}
|
|
<li>
|
|
<span class="section">{{ nav_item.title }}</span>
|
|
<ul>
|
|
{% for nav_item in nav_item.children %}
|
|
{% include 'nav.html' %}
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a class="{% if nav_item.active %}current{% endif %}" title="{{ nav_item.title }}" href="{{ nav_item.url }}">
|
|
{{ nav_item.title }}
|
|
</a>
|
|
{% if nav_item == current_page %}
|
|
{% if h1 %}
|
|
{% set toc_item = toc | first %}
|
|
{% set toc = toc_item.children %}
|
|
{% endif %}
|
|
{% if toc %}
|
|
<ul>
|
|
{% for toc_item in toc %}
|
|
<li class="anchor">
|
|
<a title="{{ toc_item.title }}" href="{{ toc_item.url }}">
|
|
{{ toc_item.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endif %}
|
|
</li>
|
|
{% endif %} |