45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
<!--div class="bs-sidebar hidden-print affix well" style="z-index:1000" role="complementary">
|
|
<ul class="nav bs-sidenav">
|
|
{%- for toc_item in page.toc %}
|
|
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
|
{%- for toc_item in toc_item.children %}
|
|
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
</ul>
|
|
</div-->
|
|
|
|
|
|
<div class="bs-sidebar hidden-print affix well" style="z-index:1000" role="complementary">
|
|
{% if nav|length>1 %}
|
|
<ul class="nav bs-sidenav">
|
|
{% for nav_item in nav %}
|
|
{% if nav_item.children %}
|
|
<li>{{ nav_item.title }}
|
|
<ul>
|
|
{% for nav_item in nav_item.children %}
|
|
<li class="{% if nav_item.active%}active{%endif%}">
|
|
<a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li class="{% if nav_item.active%}active{%endif%}">
|
|
<a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
|
|
{% if nav_item.active%}
|
|
<ul>
|
|
{%- for toc_item in page.toc %}
|
|
{%- for toc_subitem in toc_item.children %}
|
|
<li><a href="{{ toc_subitem.url }}">{{ toc_subitem.title }}</a></li>
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
</ul>
|
|
{%endif%}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|