mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
30 lines
985 B
HTML
30 lines
985 B
HTML
{% assign menu = collections.docs | collection-tree %}
|
|
|
|
<nav class="space-y" id="menu">
|
|
{% for level1 in menu %}
|
|
<div>
|
|
<div class="subheader">
|
|
{{ level1.data.title }}
|
|
</div>
|
|
{% if level1.children %}
|
|
<nav class="nav nav-vertical nav-pills">
|
|
{% for level2 in level1.children %}
|
|
<div>
|
|
<a class="nav-link{% if page.url == level2.url %} active{% endif %}"{% if level2.children %} href="{{ level2.url }}" data-bs-toggle="collapse" data-bs-target="#collapse-{{ level2.url | slug }}" aria-expanded="false"{% endif %}>{{ level2.data.title }}</a>
|
|
|
|
{% if level2.children %}
|
|
<nav class="nav nav-vertical collapse" id="collapse-{{ level2.url | slug }}">
|
|
{% for level3 in level2.children %}
|
|
<div>
|
|
<a class="nav-link{% if page.url == level3.url %} active{% endif %}" href="{{ level3.url }}">{{ level3.data.title }}</a>
|
|
</div>
|
|
{% endfor %}
|
|
</nav>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</nav>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</nav> |