Menu

Last Edit: 2026-06-09

Render the main Hugo menu as a Bootstrap offcanvas element.

Included with the header partial by default.

Usage

Partial

{{ partial "menu" . }}

Configuration

Menu items can be added by including menu: main on a page’s frontmatter, or by defining menu items in the hugo.toml file.

[menu]
  [[menu.main]]
    identifier = 'example'
    name = 'Example'
    weight = '10'
    url = 'https://example.com/'

References

1


  1. The Hugo Authors. “Menus .” 2026. ↩︎