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).
Basic Menu Items
Section titled “Basic Menu Items”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.
Creating Nested Menus (Dropdowns)
Section titled “Creating Nested Menus (Dropdowns)”To create a dropdown menu or a nested section, follow these three steps:
- Create a folder (e.g.,
About Us). - 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.
- Add “Child” pages: Place individual markdown files inside the parent folder.
Directory Structure Example
Section titled “Directory Structure Example”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)
Directory
About Us/<— Parent Folder- our-story.md <— Child Page
- leadership.md <— Child Page