From 0ad452dc28f49033c4ffbfa2b7892cfef15d35c8 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 21 Aug 2023 19:14:28 -0500 Subject: [PATCH] hide short tables of contentses --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a5bce5e..76758dd 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,7 +41,7 @@

{{ end }} - {{ if and (.Params.toc) (.TableOfContents) }} + {{ if and (.Params.toc) (gt .WordCount 400 ) (gt (len .TableOfContents) 180) (.TableOfContents) }}
On this page: {{ .TableOfContents }}