diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index fa5c69b46..36185b799 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,7 +1,9 @@ -{{ if not .Params.notoc }} -{{ with .TableOfContents }} -{{ if ge (len .) 200 }} -
{{ . }}
-{{ end }} -{{ end }} -{{ end }} \ No newline at end of file +{{ if not .Params.notoc -}} + {{ with .TableOfContents -}} + {{ if ne . `` -}} +
+ {{ . }} +
+ {{ end -}} + {{ end -}} +{{ end -}}