Navigation: omit hidden pages from section index page list by using new front matter variable#648
Navigation: omit hidden pages from section index page list by using new front matter variable#648LisaFC merged 4 commits intogoogle:masterfrom aimeeu:aimeeu-section-index
Conversation
Fix: #647 Update section-index.html to exclude pages with front matter `toc_hide: true`. Pages hidden from TOC should not appear in a section index's list of pages.
|
I'm think, it's not a but it's a feature ;-) I think, many Docsy users use the parameter |
In our case, the hidden pages are not drafts. The content is published and a direct link given to certain customers. Hiding a page by setting |
|
Then I would more prefer to define an additional parameter (e.g. hide_summary) to control that behavior. |
section-index: exclude page if hide_summary: true
|
Added |
LisaFC
left a comment
There was a problem hiding this comment.
Thanks for this (and sorry for late review, I was on vacation!)
| To hide a page or section from the menu, set `toc_hide: true` in front matter. | ||
| To hide a page or section from the menu, set `toc_hide: true` in the front matter. | ||
|
|
||
| To hide a page on the section summary, set `hide_summary: true` in the front matter. If you want to hide a page from both the TOC menu and the section summary list, you need to set both `toc_hide` and `hide_summery` to `true` in the front matter. |
There was a problem hiding this comment.
hide_summery -> hide_summary
Also should probably make it clearer what the section summary is - how about:
To hide a page from the section summary on a docs section landing page, set .....
| ``` | ||
|
|
||
| To hide a page or section from the menu, set `toc_hide: true` in front matter. | ||
| To hide a page or section from the menu, set `toc_hide: true` in the front matter. |
There was a problem hiding this comment.
from the menu -> from the left navigation menu
|
Thanks, looks good! |
Fix: #647
Update section-index.html to exclude pages with new front matter variable
hide_summary: true.This enables pages hidden from TOC to also be hidden from section summary. (see narranfrei's comment below)
Before:

With this code change:
