diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-28 10:53:47 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-28 15:14:23 +0200 |
commit | b3cb6788b2634a89ae774895f345f082020b52d8 (patch) | |
tree | 08eadc21d9308510e332a4898d2c06516cb6e497 /hugolib/site_new.go | |
parent | 5542f02fbc4c9467a4338ee1ce2e741f480a0751 (diff) | |
download | hugo-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.go | 7 |
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, } |