mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-26 00:42:18 +00:00
don't bother with a ToC if it's going to be a short one
This commit is contained in:
parent
2506744683
commit
3487e9fc1b
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue