layouts/_default/single.html
@@ -1,3 +1,6 @@ {{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}} {{$content = replace $content "%20" "-"}} {{$content = $content | safeHTML}} <!DOCTYPE html> <html lang="en"> {{ partial "head.html" . }} @@ -19,17 +22,10 @@ {{ .TableOfContents }} </aside> {{end}} {{- .Content -}} {{- $content -}} </article> {{partial "footer.html" .}} </div> {{- with resources.Get "darkmode.js" | minify -}} <script> {{.Content | safeJS }} </script> {{- end -}} </body> </html> </html>