From 5112b4a7586a45460839d4f9ced26d8619fae788 Mon Sep 17 00:00:00 2001 From: Xavier Valls Pla Date: Wed, 24 Jun 2020 18:37:02 +0200 Subject: [PATCH] make the toc optional --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7443faee0..429d1db03 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,7 +18,9 @@

{{.Title}}

{{ partial "math.html" . }} {{ end }} + {{ if or .Params.toc .Site.Params.toc }} {{ .TableOfContents }} + {{ end }} {{ partial "tags.html" .}} {{ partial "post-pagination.html" .}}