diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0025cd31d..9193ee629 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ - {{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}} {{$content = replace $content "%20" "-"}} +{{$content = $content | safeHTML}} {{ partial "head.html" . }} @@ -16,7 +16,13 @@ {{partial "darkmode.html" .}}
- {{ $content | safeHTML }} + {{if $.Site.Data.config.enableToc}} + + {{end}} + {{- $content -}}
{{partial "footer.html" .}}