diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 7a4c0198..d9b8b234 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -8,6 +8,9 @@
+ {{- if (.Param "UseHugoToc") }} + {{- .TableOfContents -}} + {{- else }} {{- $largest := 6 -}} {{- range $headers -}} {{- $headerLevel := index (findRE "[1-6]" . 1) 0 -}} @@ -87,6 +90,7 @@ {{- end -}} {{- end }} + {{- end }}