diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 17aa087..22bca7e 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -30,7 +30,7 @@ {{ $r }} {{- end }} {{- end }} - {{ if and (gt .WordCount 400 ) ($s.toc) }} + {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}

{{ T "overview" }}

{{ .TableOfContents }}