aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-28 10:53:47 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-28 15:14:23 +0200
commitb3cb6788b2634a89ae774895f345f082020b52d8 (patch)
tree08eadc21d9308510e332a4898d2c06516cb6e497 /hugolib/site_new.go
parent5542f02fbc4c9467a4338ee1ce2e741f480a0751 (diff)
downloadhugo-b3cb6788b2634a89ae774895f345f082020b52d8.tar.gz
hugo-b3cb6788b2634a89ae774895f345f082020b52d8.zip
Move all Kind constants to its own package
See #11256
Diffstat (limited to 'hugolib/site_new.go')
-rw-r--r--hugolib/site_new.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go
index 61273d3c8..13c845376 100644
--- a/hugolib/site_new.go
+++ b/hugolib/site_new.go
@@ -40,6 +40,7 @@ import (
"github.com/gohugoio/hugo/navigation"
"github.com/gohugoio/hugo/output"
"github.com/gohugoio/hugo/publisher"
+ "github.com/gohugoio/hugo/resources/kinds"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/resources/page/pagemeta"
"github.com/gohugoio/hugo/resources/resource"
@@ -185,9 +186,9 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) {
contentMap: newContentMap(contentMapConfig{
lang: k,
taxonomyConfig: taxonomiesConfig.Values(),
- taxonomyDisabled: !conf.IsKindEnabled(page.KindTerm),
- taxonomyTermDisabled: !conf.IsKindEnabled(page.KindTaxonomy),
- pageDisabled: !conf.IsKindEnabled(page.KindPage),
+ taxonomyDisabled: !conf.IsKindEnabled(kinds.KindTerm),
+ taxonomyTermDisabled: !conf.IsKindEnabled(kinds.KindTaxonomy),
+ pageDisabled: !conf.IsKindEnabled(kinds.KindPage),
}),
s: s,
}