mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
15 lines
424 B
HTML
15 lines
424 B
HTML
<nav class="md-nav md-nav--secondary">
|
|
{% set toc = page.toc %}
|
|
{% if "\x3ch1 id=" in page.content %}
|
|
{% 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>
|