style: hide toc when fullscreen in default
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user