Skip to content

Commit

Permalink
Hide Table of Contents
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito committed Feb 16, 2024
1 parent f494aaa commit 1afcf80
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions template/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ <h1 class="site-title">{{ entry.title|striptags }}</h1>
{% endif %}
</header>
{% if entry.toc %}
<h1>Table of Contents</h1>
<div id="toc">
{{ entry.toc_html}}
</div>
<hr>
<details>
<summary>Table of Contents</summary>
<div id="toc">
{{ entry.toc_html}}
</div>
<hr>
</details>
{% endif %}
{{ entry.content }}
</section>
Expand Down

0 comments on commit 1afcf80

Please sign in to comment.