From 1fc2da4fe293f47ec47a7b5d33fa94fa3a06bb3b Mon Sep 17 00:00:00 2001
From: Blake Allen <blakesnake100@gmail.com>
Date: Tue, 26 Oct 2021 23:58:37 +0000
Subject: [PATCH] Merge branch 'hugo' of https://github.com/bur3ku/quartz into hugo

---
 layouts/_default/single.html |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0025cd3..9f6443d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,3 @@
-<!-- {{replaceRE `(http.+) (\w+)` "$1-$2" .Content}} -->
-{{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}}
-{{$content = replace $content "%20" "-"}}
 <!DOCTYPE html>
 <html lang="en">
 {{ partial "head.html" . }}
@@ -16,7 +13,13 @@
         {{partial "darkmode.html" .}}
     </header>
     <article>
-        {{ $content | safeHTML }}
+        {{if $.Site.Data.config.enableToc}}
+        <aside class="mainTOC">
+            <h3>Table of Contents</h3>
+            {{ .TableOfContents }}
+        </aside>
+        {{end}}
+        {{.Content}}
     </article>
     {{partial "footer.html" .}}
 </div>

--
Gitblit v1.10.0