-
Notifications
You must be signed in to change notification settings - Fork 945
Hide Breadcrumb navigation from particular pages not the entire website #1248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Breadcrumb navigation from particular pages not the entire website #1248
Conversation
|
Hi. Breadcrumbs can be hidden using CSS. We don't need another config option, IMHO. I'll comment more soon (not before next week). |
|
@chalin Let's suppose I have 2,000 docs pages and I want to hide breadcrumb on 200 pages. How can I do that? |
Hi @samiahmedsiddiqui. How would you do it within the scope of this PR? (I'm asking because it will better help me understand your use case, how you see it resolved, and whether there might be an alternative solution that is already available.) |
bb966ca to
248597a
Compare
|
@chalin I am doing this by defining another parameter in page. If you add |
|
@chalin Please review the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but if it gets approved we should also mention that in the user guide.
|
@chalin @fekete-robert Just wanted to nudge about the PR. Any chance we can get it merged soon? |
|
Hey, I have tried the changes in my own docsy website, and after I see the result, I'm curious about when we need this feature. Say I have a When I navigate to this "How-tos" page, the breadcrumb is not displayed. This part is OK. My Docs / How-tos / Apply for your API key So, the user can still see "How-tos" in the breadcrumb. This makes me curious: then why would we hide "How-tos" from the breadcrumb in the first place? After all, users can still see it from the child pages. Hopefully I explain it clearly. |
|
@huanlin This pull request aims to selectively remove the breadcrumb navigation element from specific pages within the website, without affecting its display on other pages or child pages. As a concrete example, this change will prevent the breadcrumb from appearing on the Homepage, while still allowing it to be visible on all other pages, including those that link back to the Homepage as a parent. |
|
@chalin When can I expect this PR to be merged? I want this feature to be released so that I no longer need to update the templates. |
|
For a proposed solution, see the following PR, which reuses the same config param name for both site and page/section-front-matter: |
Uh oh!
There was an error while loading. Please reload this page.