From 1271b89c26eef51c1b2e2ecd59ab7e2caa78604e Mon Sep 17 00:00:00 2001
From: morandan <52553740+morandan@users.noreply.github.com>
Date: Sun, 04 Jul 2021 16:46:15 +0000
Subject: [PATCH] add-toc
---
layouts/_default/single.html | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cd09fdc..c7da728 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -36,6 +36,11 @@
{{ end }}
</div>
+ {{- if (eq .Params.toc true) -}}
+ <h3>Table of Contents</h3>
+ {{ .TableOfContents }}
+ {{- end -}}
+
{{ .Content }}
{{- if (eq .Params.contact true) -}}
--
Gitblit v1.10.0