fix last commit

This commit is contained in:
Blake Allen 2021-10-22 18:32:57 -07:00
parent c942c5e09d
commit b1b2913834

View File

@ -1,6 +1,6 @@
<!-- {{replaceRE `(http.+) (\w+)` "$1-$2" .Content}} -->
{{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}}
{{$content = replace $content "%20" "-"}}
{{$content = $content | safeHTML}}
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
@ -16,7 +16,13 @@
{{partial "darkmode.html" .}}
</header>
<article>
{{ $content | safeHTML }}
{{if $.Site.Data.config.enableToc}}
<aside class="mainTOC">
<h3>Table of Contents</h3>
{{ .TableOfContents }}
</aside>
{{end}}
{{- $content -}}
</article>
{{partial "footer.html" .}}
</div>