_includes/shortcodes/page-date

A JavaScript Template module for the page.date

Source:
Parameters:
NameTypeDescription
eleventyConfigObject

11ty’s Config API

Methods

(inner) pageDate(date) → {String}

Page date markup

Source:
Parameters:
NameTypeDescription
dateObject

The JS Date from the 11ty page object

Returns:
Type:
String

html An HTML template literal

Example
`${this.pageDate(data.page.date)}`