-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure the menu from config.toml #52
Comments
Hello @kamar535 , this theme does not use Hugo menus at all. The menu is automatically generated from sections. In the FrontMatter of your pages, the More explanations: https://matcornic.github.io/hugo-learn-doc/cont/pages/#types |
Tanks for the answer. Maybe the theme documentation could mention https://gohugo.io/content-management/sections/ and that the menu can only be configured from the pages front matter. |
Actually, the theme is currently on a rewrite to use latest features of Hugo: nested sections. In the future release, menu will be also generated automatically but infinite level of sections will be possible! Therefore, the documentation will be updated as well. Follow #51 for more information. |
This is an old thread but hope it's ok to chip in? I like Learn a lot and just want to simplify the (side) menu, eliminating the parts not generated from my content i.e. everything under 'More' and the search box. Must be an easy way... I get a bit lost in the docs. |
Hi Amberalpha, you've probably found the solution. Just delete any [[menu.shortcuts]] in config.toml |
Ignore last question - found "More" is set in the i18n folder under en.toml |
remove date field
Using this theme I can successfully add a weight in the page front-matter.
Usually the menu for a Hugo site can also be configured from the
config.tom
file by adding entriesto [[menu.main]]
, see https://gohugo.io/extras/menus/But, for this theme this does not work, is there another way to configure the menu from
config.toml
?Hugo version: 0.21
The text was updated successfully, but these errors were encountered: