wrap page toc

This commit is contained in:
Roman 2021-11-20 15:14:59 +03:00
parent d659586dc7
commit c13e920908
No known key found for this signature in database
GPG Key ID: 869AD4590FE050B3
1 changed files with 5 additions and 3 deletions

View File

@ -63,8 +63,10 @@
<a href="{{page.permalink | safe }}">{{page.title}}</a>
</li>
{% if current_path == page.path %}
{% if page.toc %}
{% if current_path == page.path %}
{% set_global header_count = 0 %}
{% for h2 in page.toc %}
{% set_global header_count = header_count + 1 %}
@ -92,7 +94,7 @@
</ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</ul>