wrap page toc
This commit is contained in:
parent
d659586dc7
commit
c13e920908
1 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue