2018-12-19 23:05:06 +00:00
|
|
|
<div class="col-12 col-md-3 col-xl-2 bd-sidebar">
|
|
|
|
|
|
|
|
<nav class="collapse bd-links" id = "sidebar">
|
2018-12-18 18:42:55 +00:00
|
|
|
|
2018-12-19 23:05:06 +00:00
|
|
|
{% for category in site.data.navigation %}
|
|
|
|
{% assign catid = forloop.index %}
|
|
|
|
<div class="bd-toc-item">
|
|
|
|
<a href="#submenu_{{catid}}" aria-controls="submenu_{{catid}}" data-toggle="collapse" aria-expanded="false" class="bd-toc-link dropdown-toggle">{{category.title}}</a>
|
|
|
|
|
|
|
|
<ul class="collapse nav bd-sidenav" id="submenu_{{catid}}">
|
|
|
|
|
2018-12-20 04:51:16 +00:00
|
|
|
{% for document in category.children %}
|
|
|
|
{% assign docid = forloop.index %}
|
2018-12-19 23:05:06 +00:00
|
|
|
<li>
|
2018-12-20 04:51:16 +00:00
|
|
|
|
|
|
|
{% if document.children %}
|
2018-12-20 05:00:07 +00:00
|
|
|
<a href="#submenu_{{catid}}_{{docid}}" aria-controls="submenu_{{catid}}_{{docid}}" data-toggle="collapse" aria-expanded="false" class="bd-toc-link dropdown-toggle">{{document.title}}</a>
|
2018-12-20 04:51:16 +00:00
|
|
|
<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 %}
|
2018-12-19 23:05:06 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</div>
|