1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 09:20:52 +01:00
mkdocs-material/material/partials/toc.html

15 lines
398 B
HTML
Raw Normal View History

2016-09-23 11:56:25 +02:00
<nav class="md-nav md-nav--secondary">
{% set toc = page.toc %}
2016-09-23 11:56:25 +02:00
{% if h1 %}
{% set toc = (toc | first).children %}
{% endif %}
{% if toc and (toc | first) %}
<label class="md-nav__title" for="toc">Table of contents</label>
<ul class="md-nav__list">
{% for toc_item in toc %}
{% include "partials/toc-item.html" %}
{% endfor %}
</ul>
{% endif %}
</nav>