Defines markup for a <nav>
using CSS Grid
- Since:
- 1.4.0 Check if the first tag is `pages` (directory data)
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
collection | Object | An Eleventy collection |
page | Object | Eleventy’s |
Returns:
- Type:
string
HTML
Example
// In an Eleventy template
`${this.nav(data.collections.policies, data.page)}`
Members
(inner) RE_UPPERCASE :Object.<RegExp>
Matches any character in the Latin alphabet
- Source:
Type:
Object.<RegExp>
(inner) tag :string
The first or second tag in the data.tags
array
- Since:
- 1.3.0
- Source:
Type:
string