From 84c245d47cfeb8aad53094eba3a93fd53cfe40f5 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 23 Dec 2021 00:46:39 +0100 Subject: [PATCH] toc only when explicitly enabled --- layouts/_default/single.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3c3315d..1f08e6d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,10 +11,12 @@ {{ if .Params.Image }} {{ end }} -
- {{ .TableOfContents }} -
-
+ {{ if (.Params.toc | default false) }} +
+ {{ .TableOfContents }} +
+
+ {{ end }}
{{ .Content }}
{{ if .Params.tags }}