Menu

Documentation navigation

Navigation

Understand automatic and manual navigation, page ordering, and browse fallbacks.

Navigation is the theme’s core structure. It is generated from the content tree by default and can be overridden with optional data when you need a curated sidebar.

# Automatic navigation

Use Hugo section pages and weight values to shape the sidebar:

content/
  en/
    docs/
      latest/
        _index.md
        getting-started.md
        navigation.md
        components/
          _index.md
          callouts.md

Automatic navigation is the default because it keeps authoring close to content.

# Manual navigation

When you need an explicit sidebar order, use data/docs_nav.yaml. The example site keeps a manual tree so it can demonstrate the override path without changing the content structure.

# Hidden pages

Pages can be hidden from navigation with front matter:

nav = { hidden = true }

That keeps draft, internal, or temporary content out of the sidebar, the search index, and the browse pages while leaving the page buildable. The flag lives inside the nav map — a bare hidden = true at the top level of front matter is not read by the theme.

# Browse fallback

If a reader wants the whole tree in one place, use the browse page at all-pages/. The no-JavaScript baseline keeps that path visible in the sidebar links.

On this page