Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Potocki <dawid@dawidpotocki.com>2022-06-13 15:22:58 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-06-13 22:45:03 +0300
commit5a9ecb82a39886a7241ec656fc980f20c1b8dd1c (patch)
tree6f1f6a374bf2b6de5dcffd91c38790f95923f71c /docs/content/en
parentcbc35c48d252a1b44e4c30e26cfba2ff462a1f96 (diff)
resources/page: Add :slugorfilename attribute
Fixes #4739, #385
Diffstat (limited to 'docs/content/en')
-rw-r--r--docs/content/en/content-management/urls.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/en/content-management/urls.md b/docs/content/en/content-management/urls.md
index f498d02ea..774bd9a58 100644
--- a/docs/content/en/content-management/urls.md
+++ b/docs/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)