2019-09-28 19:42:54 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% import "partials/language.html" as lang with context %}
|
2021-10-27 19:01:47 +02:00
|
|
|
{% set title = title | default(lang.t("toc.title")) %}
|
2021-10-27 19:03:48 +02:00
|
|
|
{% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
|
2021-10-27 19:01:47 +02:00
|
|
|
{% set title = config.mdx_configs.toc.title %}
|
|
|
|
{% endif %}
|
|
|
|
<nav class="md-nav md-nav--secondary" aria-label="{{ title }}">
|
2020-03-05 17:17:15 +01:00
|
|
|
{% set toc = page.toc %}
|
2021-04-15 21:21:33 +02:00
|
|
|
{% set first = toc | first %}
|
2021-04-24 11:15:05 +02:00
|
|
|
{% if first and first.level == 1 %}
|
2021-04-15 21:21:33 +02:00
|
|
|
{% set toc = first.children %}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% endif %}
|
2021-04-24 11:15:05 +02:00
|
|
|
{% if toc %}
|
2020-02-24 18:07:50 +01:00
|
|
|
<label class="md-nav__title" for="__toc">
|
2020-08-28 18:20:23 +02:00
|
|
|
<span class="md-nav__icon md-icon"></span>
|
2021-10-27 19:01:47 +02:00
|
|
|
{{ title }}
|
2020-02-24 18:07:50 +01:00
|
|
|
</label>
|
2021-02-07 16:27:51 +01:00
|
|
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
2020-03-05 17:17:15 +01:00
|
|
|
{% for toc_item in toc %}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% include "partials/toc-item.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|