From 4ebbbc1501abb4f2395106dec05bb09814985e0d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 16 Jun 2022 08:41:12 -0500 Subject: [PATCH] fix for ToCs broken in a4ab32a57f98d67565f265c6246d536a915eeec1 This restores the previous behavior of assuming a ToC would be generated for all posts unless `toc: false` is specifically listed in a post's Front Matter. --- 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 9faf6e6..ff49214 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -28,7 +28,7 @@ {{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }} {{- end -}} - {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($p.toc) }} + {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}