diff --git a/layouts/_default/single.html b/layouts/_default/single.html index af1839a..f7b5f31 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,8 +22,8 @@ {{ $toc := .TableOfContents -}} {{/* Workaround for an extra layer of indentation (https://discourse.gohugo.io/t/2303) */}} - {{- $toc := replaceRE `(\s?)${1}` $toc -}} + {{- $toc := replaceRE `(\s*)${1}` $toc -}} {{- safeHTML $toc }}