Skip to main content

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

Entry with children
{{ ChildPages.render({
  currentUrl: "/about/",
  entry: {
    key: "Site",
    children: [
      { key: "Work", url: "/work/" },
      { key: "About", url: "/about/" },
      { key: "Contact", url: "/contact/" }
    ]
  }
}) }}

Params

ParamTypeDescription
entryobjectNavigation entry. Each of its children renders as a nav link.
currentUrlstringPassed to each link for aria-current.

Fixed design: takes no styling params.