From 15ecb623e9379a16057e9873c542361f4cb11ff7 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 14 Jun 2022 11:43:19 -0700 Subject: [PATCH] Add table of contents --- layouts/_default/single.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7d02963..e0da0f9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,6 +6,15 @@ {{ end }}

+ {{ if and (ne .Params.toc "false") (or (eq .Params.toc "true") (gt .WordCount 400)) }} + + {{ end }}

{{ .Title }}