_includes/shortcodes/grid-nav

A JavaScript Template module for a navigation menu

Source:
Parameters:
NameTypeDescription
eleventyConfigObject

11ty’s Config API

Methods

(inner) gridNav(collection, page) → {String}

Navigation menu markup

Source:
See:
Parameters:
NameTypeDescription
collectionArray

11ty collection to map over

pageObject

The current 11ty page object

Returns:
Type:
String

HTML template literal

Example
`${this.gridNav(data.collections.policies, data.page)}`