| 1 |
|
| 2 |
<li class="md-nav__item"> |
| 3 |
<a href="{{ toc_item.url }}" class="md-nav__link"> |
| 4 |
<span class="md-ellipsis"> |
| 5 |
{{ toc_item.title }} |
| 6 |
</span> |
| 7 |
</a> |
| 8 |
|
| 9 |
|
| 10 |
{% if toc_item.children %} |
| 11 |
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}"> |
| 12 |
<ul class="md-nav__list"> |
| 13 |
{% for toc_item in toc_item.children %} |
| 14 |
{% if not page.meta.toc_depth or toc_item.level <= page.meta.toc_depth %} |
| 15 |
{% include "partials/toc-item.html" %} |
| 16 |
{% endif %} |
| 17 |
{% endfor %} |
| 18 |
</ul> |
| 19 |
</nav> |
| 20 |
{% endif %} |
| 21 |
</li> |