feat(core): Add {{dirname}} to summary and preview_path (#4279)

This commit is contained in:
Keegan Lillo
2020-09-28 23:20:07 +10:00
committed by GitHub
parent 8d00d17ad8
commit 576e4f0f1a
6 changed files with 149 additions and 10 deletions

View File

@ -248,6 +248,7 @@ And for the image field being populated with a value of `image.png`.
Supports all of the [`slug` templates](/docs/configuration-options#slug) and:
- `{{dirname}}` The path to the file's parent directory, relative to the collection's `folder`.
- `{{filename}}` The file name without the extension part.
- `{{extension}}` The file extension.
- `{{media_folder}}` The global `media_folder`.