From 90f285c335f6382c4ed04cde470770c1e878c6db Mon Sep 17 00:00:00 2001 From: Alvaro Torres Cogollo Date: Tue, 10 Nov 2020 22:56:14 +0100 Subject: [PATCH] Allow geekdocHiddenTocTree as Page parameter --- exampleSite/content/usage/configuration.md | 8 ++++++++ layouts/shortcodes/toc-tree.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/usage/configuration.md b/exampleSite/content/usage/configuration.md index e7131e8..bbcf1f2 100644 --- a/exampleSite/content/usage/configuration.md +++ b/exampleSite/content/usage/configuration.md @@ -193,6 +193,10 @@ geekdocFlatSection = true # Set true to hide page or section from side menu (file-tree menu only) geekdocHidden = true +# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar +# NOTE: Only applies when geekdocHidden=true +geekdocHiddenTocTree = true + # Add an anchor link to headlines geekdocAnchor = true ``` @@ -233,6 +237,10 @@ geekdocFlatSection: true # Set true to hide page or section from side menu (file-tree menu only) geekdocHidden: true +# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar +# NOTE: Only applies when geekdocHidden=true +geekdocHiddenTocTree: true + # Add an anchor link to headlines geekdocAnchor: true ``` diff --git a/layouts/shortcodes/toc-tree.html b/layouts/shortcodes/toc-tree.html index 3c46617..03698b0 100644 --- a/layouts/shortcodes/toc-tree.html +++ b/layouts/shortcodes/toc-tree.html @@ -11,7 +11,7 @@