aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/post/toc.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-12-05 20:02:25 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-12-05 20:02:25 +0800
commit02d9d03d873b666b37b865c2323078ce7c433558 (patch)
tree22867fa38a9dd0b1c923c5def74b39f190b1b3fd /layouts/partials/post/toc.html
parentfa7e44cec87ae2ec0c572cf808976492d486e969 (diff)
feat: auto expand and collapse toc
Diffstat (limited to 'layouts/partials/post/toc.html')
-rw-r--r--layouts/partials/post/toc.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post/toc.html b/layouts/partials/post/toc.html
index 7921065..1cb7804 100644
--- a/layouts/partials/post/toc.html
+++ b/layouts/partials/post/toc.html
@@ -1,7 +1,7 @@
{{ if and .Site.Params.toc (ne .Params.toc false) }}
<div class="post-toc" id="post-toc">
<h2 class="post-toc-title">{{ .Site.Data.even.default.posts.toc }}</h2>
- <div class="post-toc-content">
+ <div class="post-toc-content{{ if or .Params.autoCollapseToc (and .Site.Params.autoCollapseToc (ne .Params.autoCollapseToc false)) | not }} always-active{{ end }}">
{{.TableOfContents}}
</div>
</div>