You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/content/docs/configuration-options.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,7 @@ Template tags are the same as those for [slug](#slug), with the following except
293
293
294
294
* `{{slug}}` is the entire slug for the current entry (not just the url-safe identifier, as is the case with [`slug` configuration](#slug))
295
295
* The date based template tags, such as `{{year}}` and `{{month}}`, are pulled from a date field in your entry, and may require additional configuration - see [`preview_path_date_field`](#preview_path_date_field) for details. If a date template tag is used and no date can be found, `preview_path` will be ignored.
296
+
* `{{dirname}}` The path to the file's parent directory, relative to the collection's `folder`.
296
297
* `{{filename}}` The file name without the extension part.
297
298
* `{{extension}}` The file extension.
298
299
@@ -373,6 +374,7 @@ This setting allows the customization of the collection list view. Similar to th
373
374
374
375
Template tags are the same as those for [slug](#slug), with the following additions:
375
376
377
+
* `{{dirname}}` The path to the file's parent directory, relative to the collection's `folder`.
376
378
* `{{filename}}` The file name without the extension part.
377
379
* `{{extension}}` The file extension.
378
380
* `{{commit_date}}` The file commit date on supported backends (git based backends).
0 commit comments