Nunjucks options
Primary options
string |
Required.
|
number |
Required.
|
array |
Required.
See macro options for items.
|
boolean |
|
boolean |
|
boolean |
|
string |
Classes to add to the secondary navigation.
|
object |
HTML attributes (for example data attributes) to add to the secondary navigation.
|
Options for items
string |
Required.
|
string |
Required.
|
boolean |
|
{% from "nationalarchives/components/secondary-navigation/macro.njk" import tnaSecondaryNavigation %}
{{ tnaSecondaryNavigation({
title: "Sections",
headingLevel: 2,
items: [
{
name: "Alpha",
href: "#"
},
{
name: "Beta",
href: "#",
current: true
},
{
name: "Gamma",
href: "#"
},
{
name: "Delta",
href: "#"
}
],
noUnindentation: true
}) }}