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>
|
<a href="{{page.permalink | safe }}">{{page.title}}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if current_path == page.path %}
|
{% if page.toc %}
|
||||||
|
|
||||||
|
{% if current_path == page.path %}
|
||||||
|
|
||||||
{% set_global header_count = 0 %}
|
{% set_global header_count = 0 %}
|
||||||
{% for h2 in page.toc %}
|
{% for h2 in page.toc %}
|
||||||
{% set_global header_count = header_count + 1 %}
|
{% set_global header_count = header_count + 1 %}
|
||||||
|
@ -92,7 +94,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Reference in a new issue