hide short tables of contentses

This commit is contained in:
John Bowdre 2023-08-21 19:14:28 -05:00
parent 9dd3a8ac58
commit 0ad452dc28

View file

@ -41,7 +41,7 @@
</p>
{{ end }}
{{ if and (.Params.toc) (.TableOfContents) }}
{{ if and (.Params.toc) (gt .WordCount 400 ) (gt (len .TableOfContents) 180) (.TableOfContents) }}
<hr>
On this page:
{{ .TableOfContents }}