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/index.html |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/layouts/index.html b/layouts/index.html
index 6f7725b..6496b6f 100644
--- a/layouts/index.html
+++ b/layouts/index.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