From 474c50db3454dbe59a180e31f9b9e365ea76eaa5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Aug 2021 13:46:47 -0700 Subject: CSS: support table of content If an entry has the parameter `#+toc` set to `t`, we will enable the table of content in the page. --- layouts/_default/single.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'layouts/_default') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 356f344..b4c5443 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -29,6 +29,13 @@ {{ end }} +{{ if .Params.toc }} +
+ Table of Contents + {{ .TableOfContents }} +
+{{ end }} + {{ .Content }} {{ end }} -- cgit v1.2.3