From ffd5e272a8c42becf977125e6e9826ad26e68d23 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 30 Apr 2019 22:16:02 +0200 Subject: #43, Add bookHidden page param to hide page from side menu --- README.md | 19 ++++--- exampleSite/content/docs/_index.md | 4 -- exampleSite/content/docs/fida-abluere/_index.md | 42 --------------- exampleSite/content/docs/fida-abluere/ego-numen.md | 60 ---------------------- exampleSite/content/docs/fida-abluere/natusque.md | 48 ----------------- exampleSite/content/docs/hidden.md | 52 +++++++++++++++++++ exampleSite/content/docs/sub-section/_index.md | 42 +++++++++++++++ exampleSite/content/docs/sub-section/ego-numen.md | 60 ++++++++++++++++++++++ exampleSite/content/docs/sub-section/natusque.md | 48 +++++++++++++++++ layouts/partials/docs/menu-filetree.html | 6 +-- 10 files changed, 216 insertions(+), 165 deletions(-) delete mode 100644 exampleSite/content/docs/_index.md delete mode 100644 exampleSite/content/docs/fida-abluere/_index.md delete mode 100644 exampleSite/content/docs/fida-abluere/ego-numen.md delete mode 100644 exampleSite/content/docs/fida-abluere/natusque.md create mode 100644 exampleSite/content/docs/hidden.md create mode 100644 exampleSite/content/docs/sub-section/_index.md create mode 100644 exampleSite/content/docs/sub-section/ego-numen.md create mode 100644 exampleSite/content/docs/sub-section/natusque.md diff --git a/README.md b/README.md index 6f648d9..aac8e1b 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,10 @@ weight: 10 # (Optional) Set to mark page as flat section in file-tree menu (if BookMenuBundle not set) bookFlatSection: true -# (Optional) Set to hide table of contents, overrides global value +# (Optional) Set true to hide page or section from side menu (if BookMenuBundle not set) +bookHidden: true + +# (Optional) Set true to hide table of contents, overrides global value bookShowToC: false --- ``` @@ -158,13 +161,13 @@ bookShowToC: false ### Partials There are few empty partials you can override in `layouts/partials/` -| Partial | Placement | -| -- | -- | -| `layouts/partials/docs/inject/head.html` | Before closing `` tag | -| `layouts/partials/docs/inject/body.html` | Before closing `` tag | -| `layouts/partials/docs/inject/footer.html` | Before closing `` tag | -| `layouts/partials/docs/inject/menu-before.html` | At the beginning of `