️ refactor: improve table of contents accessibility

This commit is contained in:
welpo 2023-02-20 01:21:20 +01:00
parent e4c6705843
commit 1c93df0a6f
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

View File

@ -155,8 +155,6 @@
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% if h2.children %}
<ul>
{% for h3 in h2.children %}
@ -166,6 +164,7 @@
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}