molecules
Child pages list
A list of links to an entry's child pages, taken from an eleventyNavigation entry. The current page is marked.
Specimens
{{ ChildPages.render({
currentUrl: "/about/",
entry: {
key: "Site",
children: [
{ key: "Work", url: "/work/" },
{ key: "About", url: "/about/" },
{ key: "Contact", url: "/contact/" }
]
}
}) }}Params
| Param | Type | Description |
|---|---|---|
entry | object | Navigation entry. Each of its children renders as a nav link. |
currentUrl | string | Passed to each link for aria-current. |
Fixed design: takes no styling params.