Skip to content
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

sidebar content list limited at 50 items? How to change that limit? #1026

Closed
jasonday opened this issue May 26, 2022 · 4 comments
Closed

sidebar content list limited at 50 items? How to change that limit? #1026

jasonday opened this issue May 26, 2022 · 4 comments

Comments

@jasonday
Copy link
Contributor

I have greater than 50 pages at the 3rd level:

- category
    - subcategory
        - pages greater than 50 in count

Docsy is limiting the number shown in the sidebar to 50. Where is this configurable?

Secondarily, how would I hide only this set of pages from the sidebar (but they still show up in list)?

@fekete-robert
Copy link
Collaborator

Hi, the sidebar-tree.html partial seems to have an undocumented parameter that I think governs this behavior.
Try setting the following in your config file in the [params.ui] section:

sidebar_menu_truncate = 100

@raum51
Copy link
Contributor

raum51 commented May 26, 2022

You can find some info in #979

Sorry, I thought I'had made the documentation already, but that isn't right.

@fekete-robert
Copy link
Collaborator

As for your second question about hiding pages, see the toc_hide option at https://www.docsy.dev/docs/adding-content/navigation/#section-menu

If you want to set it for an entire subsection, you can use the cascade feature of Hugo in the frontmatter of the _index.md of the subsection, like:

cascade:
  toc_hide: true

@jasonday
Copy link
Contributor Author

Thank you. A fully baked config.toml with every option would be great for documentation purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants