Skip to content

TOC depth on a per-document basis #2532

Answered by squidfunk
mikkvitchko asked this question in Q&A
Discussion options

You must be logged in to vote

It’s not possible to achieve this via configuration, but you could just use literal h1-6 tags in your Markdown, as those won’t be included in the table of contents. Note that those headlines will not be targetable via permalinks.

Another idea is to use page-specific CSS and hide the nav levels with display: none. This would leave permalinks intact.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@mikkvitchko
Comment options

@squidfunk
Comment options

@ssbarnea
Comment options

@squidfunk
Comment options

Answer selected by mikkvitchko
Comment options

You must be logged in to vote
1 reply
@squidfunk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants