table of content do not show up as expected #1009
a-fly-fly-bird
started this conversation in
General
Replies: 1 comment
-
I‘ve found out the reason. It's actually showing it, but starting from the second level by default! The theme's markup.toml are as below: # -- Markup --
# These settings are required for the theme to function.
[goldmark]
[goldmark.renderer]
unsafe = true
[highlight]
noClasses = false
[tableOfContents]
startLevel = 2
endLevel = 4 Unfortunately, all of my titles are at the first level. Hugo official document has introduce this clearly: mark up/table-of-contents. So change the startLevel from 2 to 1 is just fine. Meanwhile, thx for help by olOwOlo/hugo-theme-even#240 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I just come into this wonderful Hugo theme. I followed the official document and build up my site successfully.
But when I need to switch on top, something went wrong.I've switched
article.showTableOfContents
inparams.toml
but it didn't shows up.I tried to fixed it up by checking the template file and the dev tools. It seems it did not render. But as you know, I am not familiar with this stuff, so could you please point out which step did I make a mistake? Thx.
Beta Was this translation helpful? Give feedback.
All reactions