From 00b4b46da349d5de4fb541686039ff02ff5de97a Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Tue, 14 Jun 2022 00:22:58 +1200 Subject: [PATCH] resources/page: Add :slugorfilename attribute Fixes #4739, #385 --- content/en/content-management/urls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/content-management/urls.md b/content/en/content-management/urls.md index f498d02ea..774bd9a58 100644 --- a/content/en/content-management/urls.md +++ b/content/en/content-management/urls.md @@ -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)