summaryrefslogtreecommitdiffstats
path: root/hugolib/page__meta.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r--hugolib/page__meta.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go
index d14b9d724..551f47977 100644
--- a/hugolib/page__meta.go
+++ b/hugolib/page__meta.go
@@ -21,6 +21,8 @@ import (
"strings"
"time"
+ "github.com/gohugoio/hugo/hugofs/files"
+
"github.com/gohugoio/hugo/common/hugo"
"github.com/gohugoio/hugo/related"
@@ -591,15 +593,14 @@ func (p *pageMeta) applyDefaultValues() error {
}
if p.IsNode() {
- p.bundleType = "branch"
+ p.bundleType = files.ContentClassBranch
} else {
source := p.File()
if fi, ok := source.(*fileInfo); ok {
- switch fi.bundleTp {
- case bundleBranch:
- p.bundleType = "branch"
- case bundleLeaf:
- p.bundleType = "leaf"
+ class := fi.FileInfo().Meta().Classifier()
+ switch class {
+ case files.ContentClassBranch, files.ContentClassLeaf:
+ p.bundleType = class
}
}
}