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 }}
|
{{ if and (gt .WordCount 400) (isset .Params "toc") .Params.toc }}
|
||||||
<aside>
|
<aside id="table-of-contents">
|
||||||
<details open>
|
<details {{ if eq .Params.toc "open" }}open{{ end }}>
|
||||||
<summary>Table of Contents</summary>
|
<summary>Table of Contents</summary>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue