3. Primary Menu

The sidebar of the theme uses the main menu. Add all the items for your sidebar navigation in this menu.

// config.toml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[menu]
[[menu.main]]
  name = 'Home'
  url = '/'
  weight = 1
[[menu.main]]
  name = 'Content'
  params.header = true
  weight = 2
[[menu.main]]
  name = 'Articles'
  url = '/articles'
  weight = 3
  • name → Title of the menu item
  • url → Path to navigate
  • weight → Used to decide the order of menu items
  • params.header → Display menu item as header

If the link points to an external website, the external icon is already displayed.

Using JSON or YAML formats? Check out the menu documentation.

Configure Social Menu

Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy