Menu Config

Menu Config

The menu in navigation is managed in site configuration, you can check Define in site configuration to get more information.

# hugo.toml
# https://gohugo.io/getting-started/configuration/#configuration-file

[menus]
  [[menus.main]]
    identifier = "menu.home"
    name = "Home"
    pageRef = "/"
    weight = 10
    [[menus.main.params]]
      icon = "home" # assets/icons/home.svg
  # menu item with absolute path
  [[menus.main]]
    identifier = "menu.tags"
    name = "Tags"
    pageRef = "/tags"
    weight = 20
    [[menus.main.params]]
      icon = "tag" # assets/icons/tag.svg
  # menu item with full url
  [[menus.main]]
    identifier = "menu.repo"
    name = "Github Repo"
    url = "https://github.com/bin16/hugo-theme-island"
    weight = 30
    [[menus.main.params]]
      target = "_blank" # open page in new tab
      icon = "bs/github" # assets/icons/bs/github.svg

Icons

Icon in menu is totally optional, check Icons to get more information.

Language-specific Menus

See: Create language-specific menu entries