docs: fix nested table of contents
This commit is contained in:
parent
2ead7dbc55
commit
40894f22cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue