Skip to content

Setting Up Navigation

The navigation menu is generated automatically based on the entries in the Pages collection. The system supports a hierarchy up to one level deep (Parent > Child).

To add a top-level link to the navigation menu, create a Markdown file in the pages directory and define the title and order in the frontmatter.

To create a dropdown menu or a nested section, follow these three steps:

  1. Create a folder (e.g., About Us).
  2. Create a “Parent” page: This must be a markdown file with the exact same title as the folder placed at the same level as the folder.
  3. Add “Child” pages: Place individual markdown files inside the parent folder.

To achieve a “About Us” dropdown containing “Our Story” and “Leadership,” your file structure should look like this:

  • Directorysrc/content-collections/pages/
    • about-us.md <— Parent Page (defines the menu link)
    • DirectoryAbout Us/ <— Parent Folder
      • our-story.md <— Child Page
      • leadership.md <— Child Page