From 756bb9e5b467a20d6b185500f5f2778ddb3b1ebf Mon Sep 17 00:00:00 2001
From: José Antonio Estevan <1043626+jaestevan@users.noreply.github.com>
Date: Tue, 27 Sep 2022 20:17:44 +0000
Subject: [PATCH] Enable using a partial theme for ToC content

---
 layouts/_default/single.html |    3 +--
 layouts/partials/toc.html    |    2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index ddef496..90f4aff 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -59,8 +59,7 @@
       {{- partial "expirationnote.html" . -}}
 
       {{- if (eq .Params.toc true) -}}
-        <h3>Table of Contents</h3>
-        {{ .TableOfContents }}
+        {{- partial "toc.html" . -}}
 
 
       {{- end -}}
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
new file mode 100644
index 0000000..d20c456
--- /dev/null
+++ b/layouts/partials/toc.html
@@ -0,0 +1,2 @@
+<h3>Table of Contents</h3>
+{{ .TableOfContents }}

--
Gitblit v1.10.0