Tweak the formatting of table of contents
This commit is contained in:
parent
174e5bc784
commit
37fecd7dfb
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{{ if and (gt .WordCount 400) .Params.toc }}
|
||||
<aside>
|
||||
<details open>
|
||||
{{ if and (gt .WordCount 400) (isset .Params "toc") .Params.toc }}
|
||||
<aside id="table-of-contents">
|
||||
<details {{ if eq .Params.toc "open" }}open{{ end }}>
|
||||
<summary>Table of Contents</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue