1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-11 07:16:09 +01:00
mkdocs-material/materializr/toc.html

28 lines
756 B
HTML
Raw Normal View History

2016-01-28 23:27:15 +01:00
{% if nav_item.children %}
<li>
2016-02-04 15:03:20 +01:00
<hr>
2016-01-28 23:27:15 +01:00
<span class="section">{{ nav_item.title }}</span>
<ul>
{% for nav_item in nav_item.children %}
{% include 'toc.html' %}
{% endfor %}
</ul>
</li>
{% else %}
<li>
2016-02-04 15:03:20 +01:00
<a class="{% if nav_item.active %}current{% endif %}" title="{{ nav_item.title }}" href="{{ nav_item.url }}">
2016-01-28 23:27:15 +01:00
{{ nav_item.title }}
</a>
{% if nav_item == current_page %}
<ul>
{% for toc_item in toc %}
<li class="anchor">
2016-02-04 15:03:20 +01:00
<a class="{% if loop.first %}current{% endif %}" title="{{ toc_item.title }}" href="{{ toc_item.url }}">
2016-01-28 23:27:15 +01:00
{{ toc_item.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}