alex-shpak / hugo-book

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

Documentation for Menu #587

Closed gavox closed 7 months ago

gavox commented 8 months ago

Solved

OK, if someone stumbles with the same question, here is the answer.

The structure of the menu is that of the content directory.

So if you have:

content | |---Curso | +---------Post1 | L--------Post2 L---Blog L-------Post3

The menu will show two titles, "Curso" and "Blog" and within Curso two links for post1 and post2 and under Blog a link to post3. Easy.

Question:

I am a little bit lost about the side menu.

I understand from this setting:

 # (Optional, default docs) Specify section of content to render as menu
  # You can also set value to "*" to render all sections to menu
  BookSection = 'docs'

that in the folder docs there should be something related to the menu. But I don't get it how to write it.

I used the BookSection='*', and got this: https://gavox.srht.site/ but I would like to have a more complex menu.

Could you point me to documentation?

I am confused because the documentation of FILE TREE MENU is scant, and LEAF BUNDLE is larger but planned to be deprecated.

Thanks