Add level 3 submenus

This commit is contained in:
Paul Pacheco 2018-12-19 22:51:16 -06:00
parent 962d8bc9a0
commit 6f262d6158

View File

@ -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>