Configure directory-level sidebar navigation with .config.yml.

Directory Navigation

Beyond per-file frontmatter, you can place a .config.yml file in any content directory to configure the whole directory.

Directory-level navigation

# content/docs/guide/.config.yml
navigation:
  label: Guide
  icon: book
  description: A collection of how-to guides
FieldTypeDescription
navigation.titlestringThe directory's group title in the sidebar.
navigation.labelstringAn alternative label.
navigation.descriptionstringGroup description.
navigation.iconstringIcon identifier (interpreted by your nav component).
navigation.hiddenbooleanHide the whole directory group, including its children.
navigation.flattenbooleanPromote children to the parent level, removing this grouping layer.

hidden: hide a group

navigation:
  hidden: true

The directory disappears from the sidebar, but pages inside it remain accessible by URL.

flatten: collapse a level

navigation:
  flatten: true

Child pages are promoted one level up, removing the "group → children" two-level structure — handy when you don't want an extra layer of nesting.