-
Hi All, Quick question related to the fantastic new table of contents feature in the 2.0 release. The docs allude to setting the TOC depth at an article and global level. I've set the configuration in Is there a way to overwrite the global setting on an article by article basis? I have attempted the following front matter but with no luck: title = "Example"
...
[markup]
[markup.tableOfContents]
endLevel = 1
startLevel = 1 Thanks for the fantastic work and project! David |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @quant-dc, the docs are intended to refer to being able to enable or disable the TOC on a per-article basis. I believe adjusting the start and end levels like your example is not possible as it's a limitation in Hugo. I'm not sure if there are any good workarounds for this. |
Beta Was this translation helpful? Give feedback.
Hi @quant-dc, the docs are intended to refer to being able to enable or disable the TOC on a per-article basis. I believe adjusting the start and end levels like your example is not possible as it's a limitation in Hugo. I'm not sure if there are any good workarounds for this.