resources/page: Add :slugorfilename attribute

Fixes #4739, #385
This commit is contained in:
Dawid Potocki 2022-06-14 00:22:58 +12:00 committed by Bjørn Erik Pedersen
parent f2cc72a1f1
commit e679f1b7e9
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View File

@ -91,6 +91,9 @@ The following is a list of values that can be used in a `permalink` definition i
`:slug`
: the content's slug (or title if no slug is provided in the front matter)
`:slugorfilename`
: the content's slug (or filename if no slug is provided in the front matter)
`:filename`
: the content's filename (without extension)