don't bother with a ToC if it's going to be a short one

This commit is contained in:
John Bowdre 2021-12-09 16:12:30 -06:00
parent 2506744683
commit 3487e9fc1b

View file

@ -30,7 +30,7 @@
<a href='{{ absLangURL (default "about/" $s.introURL) }}' class="button mt-1" role="button" title='{{ $r }}'>{{ $r }}</a> <a href='{{ absLangURL (default "about/" $s.introURL) }}' class="button mt-1" role="button" title='{{ $r }}'>{{ $r }}</a>
{{- end }} {{- end }}
{{- end }} {{- end }}
{{ if and (gt .WordCount 400 ) ($s.toc) }} {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}
<div class="post_toc"> <div class="post_toc">
<h2>{{ T "overview" }}</h2> <h2>{{ T "overview" }}</h2>
{{ .TableOfContents }} {{ .TableOfContents }}