mirror of
https://github.com/danog/Valinor.git
synced 2024-12-12 09:09:38 +01:00
20 lines
613 B
HTML
20 lines
613 B
HTML
|
<!-- Table of contents item -->
|
||
|
<li class="md-nav__item">
|
||
|
<a href="{{ toc_item.url }}" class="md-nav__link">
|
||
|
{{ toc_item.title }}
|
||
|
</a>
|
||
|
|
||
|
<!-- Table of contents list -->
|
||
|
{% if toc_item.children %}
|
||
|
<nav class="md-nav" aria-label="{{ toc_item.title }}">
|
||
|
<ul class="md-nav__list">
|
||
|
{% for toc_item in toc_item.children %}
|
||
|
{% if not page.meta.toc_depth or toc_item.level <= page.meta.toc_depth %}
|
||
|
{% include "partials/toc-item.html" %}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</nav>
|
||
|
{% endif %}
|
||
|
</li>
|