Header

Last Edit: 2026-06-09

Renders the site header, including navigation bar and main menu.

Loads the “main” menu (.Site.Menus.main), copyright statement, and theme controls. Includes toggle for sidebar for pages with sidebar enabled. Loaded in the baseof.html layout.

Usage

Partial

{{ partial "header" . }}

Configuration

Can be configured in the params.toml file.

[header]TypeDefaultDescription
statebooltrueToggle header state.
brandLogoboolfalseToggles brand logo for site from logo path.
brandTextbooltrueToggles brand text for site, uses .Site.Title.
fixedTopbooltrueToggles if the header should stick to the top when the page is scrolled down.
shadowbooltrueToggles shadows for header partial.

References

1


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