From a5777c64ceee694f0f91d17f8b2ad8c9be8ed96d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 16 Feb 2020 23:40:02 +0100 Subject: [PATCH] add toc-tree shortcode --- layouts/shortcodes/toc-tree.html | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 layouts/shortcodes/toc-tree.html diff --git a/layouts/shortcodes/toc-tree.html b/layouts/shortcodes/toc-tree.html new file mode 100644 index 0000000..7fe4620 --- /dev/null +++ b/layouts/shortcodes/toc-tree.html @@ -0,0 +1,35 @@ +{{ $tocLevels := default (default 6 .Site.Params.GeekdocToC) .Page.Params.GeekdocToC }} + +{{ if $tocLevels }} +
+ {{ template "toc-tree" dict "sect" .Page.Pages }} +
+{{ end }} + + +{{ define "toc-tree" }} + +{{ end }}