-
Notifications
You must be signed in to change notification settings - Fork 167
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
Improve sidebar user experience #124
Comments
To hide the particular page from the sidebar, I added a frontmatter to the page Updated sidebar.html:
|
@mafendi thanks for sharing this, that's almost what I was planning to add in the theme |
I think it would be nice to have the option to prevent the sidebar from being generated for certain pages, or is this already possible? |
@jln-ho it should be trivial to add an optional like |
@imfing That would exclude a single page from the sidebar. I was talking about excluding the sidebar from a single page. |
@mafendi it's implemented in #209 essentially it's a one-line change: https://github.com/imfing/hextra/pull/209/files#diff-21c3ed4170b0e684f5c718a8b3bb28e73bb15d61a3f0f2301cafcc62ca5034f3R76 |
@jln-ho I've added this in the PR #209 with the following frontmatter to hide the sidebar on a specific page: ---
title: Configuration
sidebar:
hide: true
--- Please note, this feature is currently experimental and may change as part of performance enhancements for sidebar rendering (see issue #122). |
Discussed in #120
Originally posted by msavdert October 2, 2023
https://www.docsy.dev/docs/adding-content/navigation/#section-menu-options
This option only works for _index.md. This option didn't work for other .md files under the same folder to not show them in the sidebar.
Summary:
Support expand and collapse sidebarThe text was updated successfully, but these errors were encountered: