Main navigation
[[menu.main]]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, 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, typeabout.weightis for your navigation sorting, the smaller number weight will show first.- For
dropdown menuyou need to add another attribute calledhasChildren = true, and removeURL. then give 1 tab space for understanding hugo that is a children menu item. and paste this[[menu.main]]again, then give theparent =attribute here. parent name should be the dropdown item name, then give the pagenameandURL. navBtnis for navigation button that we provided in this theme, if you don’t want it, you can turn off this, you will seenavBtnbottom of the main navigation, you can setenable = 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 need to give the page name.
Footer Navigation
Footer navigation is also follow the same rule that use main navigation.