fix for ToCs broken in a4ab32a57f

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.
This commit is contained in:
John Bowdre 2022-06-16 08:41:12 -05:00
parent a893ac82f6
commit 4ebbbc1501

View file

@ -28,7 +28,7 @@
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
</div>
{{- end -}}
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($p.toc) }}
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}
<div class="post_toc">
<div class="wrap-collapsible">
<input id="collapsible" class="toggle" type="checkbox">