mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Add level 3 submenus
This commit is contained in:
parent
962d8bc9a0
commit
6f262d6158
@ -10,8 +10,22 @@
|
||||
<ul class="collapse nav bd-sidenav" id="submenu_{{catid}}">
|
||||
|
||||
{% for document in category.children %}
|
||||
{% assign docid = forloop.index %}
|
||||
<li>
|
||||
<a href="{{document.url | relative_url}} ">{{document.title}}</a>
|
||||
|
||||
{% if document.children %}
|
||||
<a href="#submenu_{{catid}}_{{docid}}" aria-controls="submenu_{{catid}}_{{docid}}" data-toggle="collapse" aria-expanded="false" class="bd-toc-link dropdown-toggle">{{category.title}}</a>
|
||||
<ul class="collapse nav bd-sidenav" id="submenu_{{catid}}_{{docid}}">
|
||||
{% for child in document.children %}
|
||||
<li>
|
||||
<a href="{{child.url | relative_url}}">{{child.title}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<a href="{{document.url | relative_url}}">{{document.title}}</a>
|
||||
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user