aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorMai-Lapyst <[email protected]>2023-06-26 15:31:01 +0200
committerGitHub <[email protected]>2023-06-26 15:31:01 +0200
commitcc14c6a52c215fc43716f7b266c4c340b3d28230 (patch)
tree0d371fe0f9421d52a42e203ade99127c2d11806d /hugofs
parente3308a0bbc2de1cb4d7571521abeab07049ce31f (diff)
downloadhugo-cc14c6a52c215fc43716f7b266c4c340b3d28230.tar.gz
hugo-cc14c6a52c215fc43716f7b266c4c340b3d28230.zip
resources/page: Allow section and taxonomy pages to have a permalink configuration
Allows using permalink configuration for sections (branch bundles) and also for taxonomy pages. Extends the current permalink configuration to be able to specified per page kind while also staying backward compatible: all permalink patterns not dedicated to a certain kind, get automatically added for both normal pages and term pages. Fixes #8523
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/files/classifier.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugofs/files/classifier.go b/hugofs/files/classifier.go
index 09b239c21..5690795ed 100644
--- a/hugofs/files/classifier.go
+++ b/hugofs/files/classifier.go
@@ -93,6 +93,7 @@ const (
ContentClassBranch ContentClass = "branch"
ContentClassFile ContentClass = "zfile" // Sort below
ContentClassContent ContentClass = "zcontent"
+ ContentClassZero ContentClass = "zero" // Special value for zeroFile
)
func (c ContentClass) IsBundle() bool {