The following placeholders can be used to insert dynamic data in the content files, as well as in config properties like filename and path to define the file and directory names, respectively.
fields
Replaced with the content of any of the supplied fields.
Example:
# Generates `entry-some-post-slug` filename: "entry-{fields.d}"
options
Replaced with the content of any of the supplied options.
Example:
# Generates `entry-some-post-category` filename: "entry-{options.category}"
@timestamp
Replaced with the current Unix timestamp, in milliseconds.
Example:
# Generates `entry-1511347137787` filename: "entry-{@timestamp}"
@id
Replaced with the unique entry ID.
Example:
# Generates `_data/results/34127140-c950-11e7-980c-7588ea965edb` path: "_data/results/{@id}"
@date
Replaced with the current date formatted by Moment.js. It’s in the format @date:MASK, where MASK represents any format string supported by Moment.js.
Example:
# Generates 2018-31-08-format-used-by-jekyll-posts filename: "{@date:YYYY-MM-DD}-{fields.title}"