Hide pages and sections by adding hidden to frontmatter#2826
Hide pages and sections by adding hidden to frontmatter#2826bram-dingelstad wants to merge 6 commits intogetzola:nextfrom
hidden to frontmatter#2826Conversation
b0f9158 to
ff4bfe4
Compare
…d filtered them out of Paginator
ff4bfe4 to
a80a744
Compare
|
|
||
| # A hidden page is loaded and created, but won't be added to Paginators, | ||
| # set to true to hide page or false to override a parent section's `hidden = true` | ||
| hidden = false |
There was a problem hiding this comment.
Since hidden is a Option<bool> its good to default to false right? I was thinking of leaving it empty, implying the None state.
I assumed that people would get confused and since the None implies false with the inheritence rules specified above it, it should be fine!
Lemme know
hidden to frontmatter
|
Hi @bram-dingelstad, I'm the initiator of the mentioned GitHub discussion, and I wanted to highlight some potential changes needed to exclude hidden pages from search:
Additional improvements:
|
|
Great suggestions @tuyen-at-work! I'll get to adding those when I have the time! |
This feature is implemented based on discussion on the forum as well as #2391
Sanity check:
Code changes
(Delete or ignore this section for documentation changes)
nextbranch?If the change is a new feature or adding to/changing an existing one:
I've added
hiddento bothPageFrontMatter&SectionFrontMatterand made sure to filter them in the Paginator, which covers my use case.Work that I can still do to bring this to completion:
Lemme know what y'all think ✨