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

github.com/gohugoio/hugoDocs.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-16 11:35:30 +0300
commite679f1b7e9867f7e9f8f9042d827d0a07359eddc (patch)
tree37abcb6f220d2231460c75a5966c646da026906d
parentf2cc72a1f1e1dccf3db419c3905df0ae5bb24e16 (diff)
resources/page: Add :slugorfilename attribute
Fixes #4739, #385
-rw-r--r--content/en/content-management/urls.md3
1 files changed, 3 insertions, 0 deletions
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)