diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 42f7e615..f6055c61 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,13 +1,13 @@ +{{- $headers := findRE "(.|\n])+?" .Content -}} +{{- $has_headers := ge (len $headers) 1 -}} +{{- if $has_headers -}}