Skip to content

How to get toc heading level to depth four and more #91

Answered by razonyang
AbdulSayyed asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the default ToC levels is 2-3, you can tweak the markup.tableOfContents config to suit your needs.

// hugo.yaml
markup:
  tableOfContents:
    endLevel: 6
    ordered: false
    startLevel: 2

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AbdulSayyed
Comment options

@razonyang
Comment options

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