This key defines the raw template to be processed when creating files. Relative to the containing collection's path.
Appears in
Type
string
Examples
In this example, we have configured a create path template for the blog Collection using the date and title fields.
Copied to clipboard
collections_config:
blog:
create:
path: >-
[relative_base_path]/{date|year}-{date|month}-{date|day}-{title|slugify}.[ext]{
"collections_config": {
"blog": {
"create": {
"path": "[relative_base_path]/{date|year}-{date|month}-{date|day}-{title|slugify}.[ext]"
}
}
}
}