mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
16 lines
502 B
HTML
16 lines
502 B
HTML
{% import "partials/language.html" as lang %}
|
|
<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">{{ lang.t('toc.title') }}</label>
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
{% for toc_item in toc_ %}
|
|
{% include "partials/toc-item.html" %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</nav>
|