From 2f3e96b03759dbd26fa53603416677c53b86ef36 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Thu, 7 Jul 2022 00:41:57 +0200 Subject: [PATCH] added an toc if wished --- themes/meins/layouts/_default/single.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/meins/layouts/_default/single.html b/themes/meins/layouts/_default/single.html index f752ee3..8dd179f 100644 --- a/themes/meins/layouts/_default/single.html +++ b/themes/meins/layouts/_default/single.html @@ -1,3 +1,6 @@ {{ define "main" }} +{{ if .Params.toc }} +{{ .TableOfContents }} +{{ end }} {{ .Content }} {{ end }} \ No newline at end of file