From 27c33f8334f6ac4a67c2a12b8eed219e6d8aeb2b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 13 Aug 2021 21:45:32 +0000
Subject: [PATCH] Merge pull request #9 from brechtcs/template

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

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c7ce881..9e647ff 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,17 +8,16 @@
     {{partial "darkmode.html" .}}
     <article>
         {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
+        {{if $.Site.Data.config.enableToc}}
+        <aside class="mainTOC">
+            <h3>Table of Contents</h3>
+            {{ .TableOfContents }}
+        </aside>
+        {{end}}
         {{- .Content -}}
     </article>
     {{partial "footer.html" .}}
 </div>
-
-{{- with resources.Get "darkmode.js" | minify -}}
-<script>
-  {{.Content | safeJS }}
-</script>
-{{- end -}}
-
 </body>
 
-</html>
\ No newline at end of file
+</html>

--
Gitblit v1.10.0