Blake Allen
2021-10-26 a14d06aa3d37396531dbfe09bb3b18b7eb9b96ad
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>