This template supports multi-language, we provide 2 language here, that’s why you will see 2 navigation here. First one is in
[Language.en.menu] that is for English language. and other one is in
[Language.fr.menu] that is for the french language. In this theme English is the default language. All the navigation are follow the same rules.
In this file, we already provide a navigation, you just need to modified with your won page name and links,
[[Languages.en.menu.nav]]is the main loop, you can add your navigation item by copy and paste this line.
nameattribute is for navigation item name.
URLis for the page url, just give the page name here, it will automatically add the base URL from your site. like if you want to give the about page url here, just type
about. this is for the default language URL. For the other languages, you must add the language name before the page name, like for french language, you need to add
fr/before the page url. example :
weightis for your navigation sorting, the smaller number weight will show first.
dropdown menuyou need to add another attribute called
hasChildren = true, and remove
URL. then give 1 tab space for understanding hugo that is a children menu item. and paste this
[[Languages.en.menu.nav]]again, then give the
parent =attribute here. parent name should be the dropdown item name, then give the page
navBtnis for navigation button that we provided in this theme, if you don’t want it, you can simply turn off this, you will see
navBtnbottom of the main navigation, you can set
enable = falsefor hide this button, true is the default value, you can set button label and url here. this url is also like the navigation url, you just need to give the page name.