feat: support responsive TOC

This commit is contained in:
Erzbir
2025-08-03 18:42:03 +08:00
parent db9a246e7b
commit b796ea9e46
3 changed files with 229 additions and 49 deletions
+4 -1
View File
@@ -27,7 +27,10 @@
<div th:utext="${post.content.content}" id="content">Post Content</div>
</section>
</article>
<section class="toc" th:if="${theme.config.basic.show_toc}"></section>
<nav id="toc" th:if="${theme.config.basic.show_toc}" class="toc">
<button id="toc-toggle" class="toc-toggle" aria-label="Hide Table of Contents"></button>
<div id="toc-content" class="toc-content"></div>
</nav>
<section class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">Read other posts</span>