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

Add limit to table-of-contents depth. #221

Open
2 tasks
johnnymatthews opened this issue Sep 7, 2024 · 0 comments
Open
2 tasks

Add limit to table-of-contents depth. #221

johnnymatthews opened this issue Sep 7, 2024 · 0 comments
Assignees
Labels
web-dev Work that requires web development, not content creation.

Comments

@johnnymatthews
Copy link
Collaborator

The table-of-contents (TOC) currently has no depth limit, leading to very long TOCs like in /reference/rust-testing-interface/

image

Tasks

  • Add a depth limit to the TOC which can be altered within this repo's hugo.yaml.

  • Allow pages to ignore this limit by adding a per-page variable to a pages front-matter:

    ignore_toc_depth: true

    Or something like that.

@johnnymatthews johnnymatthews self-assigned this Sep 7, 2024
@johnnymatthews johnnymatthews added the web-dev Work that requires web development, not content creation. label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-dev Work that requires web development, not content creation.
Projects
None yet
Development

No branches or pull requests

1 participant