mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-25 07:41:30 +00:00
remove unnecessary regex, use encodeuri for label instead of replace
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
{{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}}
|
||||
{{$content = replace $content "%20" "-"}}
|
||||
{{$content = $content | safeHTML}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{ partial "head.html" . }}
|
||||
@@ -22,7 +19,7 @@
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
{{end}}
|
||||
{{- $content -}}
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{partial "footer.html" .}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user