From ffd5e272a8c42becf977125e6e9826ad26e68d23 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 30 Apr 2019 22:16:02 +0200 Subject: [PATCH] #43, Add bookHidden page param to hide page from side menu --- README.md | 19 ++++--- exampleSite/content/docs/_index.md | 4 -- exampleSite/content/docs/hidden.md | 52 +++++++++++++++++++ .../{fida-abluere => sub-section}/_index.md | 0 .../ego-numen.md | 0 .../{fida-abluere => sub-section}/natusque.md | 0 layouts/partials/docs/menu-filetree.html | 6 +-- 7 files changed, 66 insertions(+), 15 deletions(-) delete mode 100644 exampleSite/content/docs/_index.md create mode 100644 exampleSite/content/docs/hidden.md rename exampleSite/content/docs/{fida-abluere => sub-section}/_index.md (100%) rename exampleSite/content/docs/{fida-abluere => sub-section}/ego-numen.md (100%) rename exampleSite/content/docs/{fida-abluere => sub-section}/natusque.md (100%) 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 `