mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-07-20 01:42:36 +02:00
toc: add option to open toc details by default
usage: in page params add (yml) TocOpen: true
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user