toc: add option to open toc details by default

usage: in page params add (yml)
TocOpen: true
This commit is contained in:
Aditya Telange 2020-09-16 15:41:28 +05:30
parent 8f7a04337f
commit a8652f57f3
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -21,7 +21,7 @@
{{ end }}
{{ if .Params.ShowToc }}
<div class="toc">
<details>
<details {{if .Params.TocOpen }} open{{ end }}>
<summary>
<div class="details">Table of Contents</div>
</summary>