Skip to content

Commit

Permalink
fix toc
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-kan authored Dec 22, 2024
1 parent 54ce8ab commit a5f92e8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@

<div class="SelectMenu-modal">

{% for node in page.jekyll-theme-WuK.default.menu.prepend %}
{{ node }}
{% endfor %}

<div class="SelectMenu-list">

{% for node in page.jekyll-theme-WuK.default.menu.append %}
{% for node in page.jekyll-theme-WuK.default.menu.prepend %}
{{ node }}
{% endfor %}

Expand All @@ -59,10 +55,12 @@
</a>
{% endfor %}

{% if page.jekyll-theme-WuK.default.menu.jekyll-toc.enable %}
{{ page.jekyll-theme-WuK.default.menu.jekyll-toc.prepend }}
{% include toc.html html=content ordered=true skipNoIDs=true sanitize=true id="toc" %}
{% endif %}
<div class="SelectMenu-item toc">
{% if page.jekyll-theme-WuK.default.menu.jekyll-toc.enable %}
{{ page.jekyll-theme-WuK.default.menu.jekyll-toc.prepend }}
{% include toc.html html=content ordered=true skipNoIDs=true sanitize=true id="toc" %}
{% endif %}
</div>

{% for node in page.jekyll-theme-WuK.default.menu.append %}
{{ node }}
Expand Down

0 comments on commit a5f92e8

Please sign in to comment.