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:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-03-30 08:55:24 +0300
committerGitHub <noreply@github.com>2021-03-30 08:55:24 +0300
commit2dc222cec4460595af8569165d1c498bb45aac84 (patch)
tree675e5fc3e25592664adc9ab0f77b4ea6a03cce30 /docs/content/en/content-management
parent4d22ad580ec8c8e5e27cf4f5cce69b6828aa8501 (diff)
Add slice syntax to sections permalinks config
Fixes #8363
Diffstat (limited to 'docs/content/en/content-management')
-rw-r--r--docs/content/en/content-management/urls.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/en/content-management/urls.md b/docs/content/en/content-management/urls.md
index 4389b1dca..4cba09232 100644
--- a/docs/content/en/content-management/urls.md
+++ b/docs/content/en/content-management/urls.md
@@ -83,7 +83,7 @@ The following is a list of values that can be used in a `permalink` definition i
: the content's section
`:sections`
-: the content's sections hierarchy
+: the content's sections hierarchy. {{< new-in "0.83.0" >}} Since Hugo 0.83 you can use a selection of the sections using _slice syntax_: `:sections[1:]` includes all but the first, `:sections[:last]` includes all but the last, `:sections[last]` includes only the last, `:sections[1:2]` includes section 2 and 3. Note that this slice access will not throw any out-of-bounds errors, so you don't have to be exact.
`:title`
: the content's title