TOC depth on a per-document basis #2532
-
Is there a way to limit TOC depth for a specific document? The Is there a way to do this? If not - this would be a much appreciated feature, may be doable with metatags? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
It’s not possible to achieve this via configuration, but you could just use literal Another idea is to use page-specific CSS and hide the nav levels with |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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.