mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-21 22:42:19 +00:00
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:
parent
a893ac82f6
commit
4ebbbc1501
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
|
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- 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="post_toc">
|
||||||
<div class="wrap-collapsible">
|
<div class="wrap-collapsible">
|
||||||
<input id="collapsible" class="toggle" type="checkbox">
|
<input id="collapsible" class="toggle" type="checkbox">
|
||||||
|
|
Loading…
Reference in a new issue