feat: hide toc for short notes
parent
fc4b9ded76
commit
e245505082
@ -0,0 +1,8 @@
|
|||||||
|
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false) (gt .WordCount 250)) }}
|
||||||
|
<aside class="mainTOC">
|
||||||
|
<details {{ if $.Site.Data.config.openToc }}open {{ end }}>
|
||||||
|
<summary>Table of Contents</summary>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</details>
|
||||||
|
</aside>
|
||||||
|
{{end}}
|
Loading…
Reference in New Issue