organisms
Primary nav
The site's main navigation as a row of links built from the CMS navigation document, with the current page marked.
Specimens
This page's own header and footer already render this nav, and it always emits the id "primary-nav", so a specimen would add a third duplicate id.
Params
| Param | Type | Description |
|---|---|---|
items | array | Navigation entries. Takes precedence over cms and pages. |
cms | object | navigation[0].headerItems feed the menu when items is not set. |
pages | collection | eleventyNavigation source, used when neither items nor the CMS items exist. |
classes | string, variant map, or array | Applied to the <nav> through classes. |
currentUrl | string | Forwarded to the menu for aria-current. |
Notes
The links come from the CMS navigation document's header items, then from an items param, then from the Eleventy navigation tree. The id primary-nav is hard-coded, which is why the header plus footer already duplicate it on every page.