Tweak the formatting of table of contents

This commit is contained in:
Eryn Wells 2023-05-08 20:12:33 -07:00
parent 174e5bc784
commit 37fecd7dfb

View file

@ -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>