_includes/shortcodes/grid-nav

Defines markup for a <nav> using CSS Grid

Since:
  • 1.4.0 Check if the first tag is `pages` (directory data)
Source:
See:
Parameters:
NameTypeDescription
collectionObject

An Eleventy collection

pageObject

Eleventy’s data.page object

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