From 24776624047bea380c51dbb503cdf335d37b83b0 Mon Sep 17 00:00:00 2001
From: Blake Allen <blake.edward.allen@gmail.com>
Date: Tue, 26 Oct 2021 19:46:03 +0000
Subject: [PATCH] Merge branch 'hugo' into hugo
---
layouts/index.html | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index c30cd4f..a234930 100644
--- a/layouts/index.html
+++ b/layouts/index.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,10 +22,10 @@
{{ .TableOfContents }}
</aside>
{{end}}
- {{- .Content -}}
+ {{- $content -}}
</article>
{{partial "footer.html" .}}
</div>
</body>
-
</html>
+
--
Gitblit v1.10.0