diff --git a/layouts/partials/content.html b/layouts/partials/content.html index e7a71a6..c336a97 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -14,6 +14,7 @@ {{ if .TableOfContents }} {{ $headers := findRE "(.|\n])+?" .Content }} + {{ if ge (len $headers) 4 }}
{{ .TableOfContents }}