From 9292de63336da42651c646253ef6000621d5328b Mon Sep 17 00:00:00 2001
From: Blake Allen <blakesnake100@gmail.com>
Date: Tue, 26 Oct 2021 23:58:08 +0000
Subject: [PATCH] remove unnecessary regex, use encodeuri for label instead of replace
---
layouts/_default/single.html | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9193ee6..9f6443d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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>
--
Gitblit v1.10.0