Menus
Mainroad supports multiple menus. The main
menu is fully responsive and displayed right under the site header
Add menus to the website
Mainroad theme offers support for multiple menus, with the primary (main
) menu being fully responsive and placed directly beneath the site header. In addition, there are secondary menus (side
, footer
) available: a sidebar menu displayed as a widget, and a footer menu located at the bottom of the page.
Config file
[menu]
[[menu.main]]
identifier = "home"
name = "Home"
url = "/"
weight = 1 # Lowest weight will occupy first place
[[menu.main]]
identifier = "about"
name = "About"
url = "/about"
weight = 2
Front matter
Include a page in the menu through front matter.
---
title: 'Contact'
menu: footer
# Another example
menu: # Optional, add page to a menu. Options: main, side, footer
main:
name: FAQ
---
Multiple menus
Assign a page to multiple menus by specifying a list.
---
title: 'Contact'
menu:
- main
- side
- footer
---