Date - Front Matter
How to manage date string into the page header
Last modified 2025-07-31
ITADS
Table of content
Remove date display
Just set date: false
. Here is A front matter with date disabled:
date: false
Custom date
Enter Eleventy support date https://www.11ty.dev/docs/dates/, for example:
date: 2016-01-01
git Last Modified date
It may occurs that Eleventy date setting date: git Last Modified
fails on production builds. To force the display of the truly git Last Modified date, just set date: 1111-11-11
. This special date value forces the display of the truly git Last Modified date by seeking through git history. Thus, it may increases significantly build duration proportionally with the amount of pages this parameter is set.
This following page front matter date will seek file git history to display the truly git Last Modified date.
date: 1111-11-11