From c06357a6041aae1a9ad7cdac5896d1fac43c7454 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 24 Jul 2020 22:03:13 +0530 Subject: add Table of Contents - can be used by `ShowToc = true` in Single Post params --- layouts/_default/single.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2b9ecc7..a2775fc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,6 +12,12 @@ {{- .Date.Format "January 2, 2006" -}} + {{ if .Params.ShowToc }} +
++ {{ end }}Table of Contents+ {{ .TableOfContents }} +