From 15fc33d78b495dafff7f2c3b78cca628bc3bfc98 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Wed, 31 Jul 2019 23:27:01 +0200 Subject: Applied @user501254's fix https://github.com/gohugoio/hugo/issues/1778#issuecomment-483880269 --- layouts/_default/single.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 24f4dd5..1584dcf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -49,7 +49,9 @@ {{ if .TableOfContents }}
{{ i18n "toc" }} - {{- .TableOfContents -}} + {{- $emtLiPtrn := "(?s)
{{- end -}} {{- .Content -}} -- cgit v1.2.3