docs: fix nested table of contents

This commit is contained in:
jean-emmanuel 2019-04-11 00:06:13 +02:00
parent 2ead7dbc55
commit 40894f22cf

View file

@ -89,9 +89,13 @@
<ul class="nav">
{% for toc_item in toc_ %}
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% if toc_item.children | first is defined %}
<ul class="nav">
{% for toc_item in toc_item.children %}
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
{% endif %}