- Getting Started
- Using Data
- Working with Templates
- Template Languages
- Release History
Content Dates #
Setting a Content Date in Front Matter #
date key to your front matter to override the default date (file creation) and customize how the file is sorted in a collection.
--- date: 2016-01-01 ---
--- date: Last Modified ---
Last Modified: automatically resolves to the file’s last modified date
Created: automatically resolves to the file’s created date (default, this is what is used when
2016-01-01or any other valid YAML date value
"2016-01-01"or any other valid UTC string that Luxon’s
DateTime.fromISOcan parse (see also the Luxon API docs).
date key is omitted from the file, the date is assumed to be:
- If the file name has a
YYYY-MM-DDformat (anywhere), this date is used.
- File creation date.
Running Eleventy on a Continuous Integration Server? Your collections may appear out of order! See Common Pitfalls.