summaryrefslogtreecommitdiffstats
path: root/hugolib/content_map.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-28 10:53:47 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-28 15:14:23 +0200
commitb3cb6788b2634a89ae774895f345f082020b52d8 (patch)
tree08eadc21d9308510e332a4898d2c06516cb6e497 /hugolib/content_map.go
parent5542f02fbc4c9467a4338ee1ce2e741f480a0751 (diff)
Move all Kind constants to its own package
See #11256
Diffstat (limited to 'hugolib/content_map.go')
-rw-r--r--hugolib/content_map.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/hugolib/content_map.go b/hugolib/content_map.go
index 9abf0d5b0..8cb307691 100644
--- a/hugolib/content_map.go
+++ b/hugolib/content_map.go
@@ -22,6 +22,7 @@ import (
"github.com/gohugoio/hugo/helpers"
+ "github.com/gohugoio/hugo/resources/kinds"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/hugofs/files"
@@ -275,13 +276,13 @@ type contentBundleViewInfo struct {
func (c *contentBundleViewInfo) kind() string {
if c.termKey != "" {
- return page.KindTerm
+ return kinds.KindTerm
}
- return page.KindTaxonomy
+ return kinds.KindTaxonomy
}
func (c *contentBundleViewInfo) sections() []string {
- if c.kind() == page.KindTaxonomy {
+ if c.kind() == kinds.KindTaxonomy {
return []string{c.name.plural}
}