style: hide toc when fullscreen in default

This commit is contained in:
Erzbir
2026-06-15 17:37:40 +08:00
parent aa318315ea
commit 72346d78d2
2 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -19,7 +19,8 @@
<div th:utext="${post.content.content}" id="content">Post Content</div>
</section>
</article>
<nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc">
<nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc"
th:attr="data-default-open=${theme.config.style.fullscreen_layout ? 'false' : 'true'}">
<button id="toc-toggle" class="toc-toggle" aria-label="Hide Table of Contents"></button>
<div id="toc-content" class="toc-content"></div>
</nav>