alex-shpak / hugo-book

Hugo documentation theme as simple as plain book
https://hugo-book-demo.netlify.app
MIT License
3.21k stars 1.16k forks source link

Main Markdown heading (level 1: #) not in page ToC (right hand side menu) #604

Closed smillas-snow closed 4 months ago

smillas-snow commented 4 months ago

Hi, I have noticed that the main heading (level 1: #) on my markdown page does not appear in the page menu (/ToC) on the right hand side. Only sub-headings like level 2 (##) and lower. Is this supposed to be like that? Or is that a bug? Is there a way to have level 1 appear there as well?

Thanks for the help.

alex-shpak commented 4 months ago

Hi! There are parameters in hugo to configure creation of TOC

https://gohugo.io/getting-started/configuration-markup/#table-of-contents https://github.com/alex-shpak/hugo-book/blob/master/exampleSite/config.toml#L16-L17

smillas-snow commented 4 months ago

Hi, Thank you, I must have overlooked that on my search.