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 /config | |
parent | 5542f02fbc4c9467a4338ee1ce2e741f480a0751 (diff) | |
download | hugo-b3cb6788b2634a89ae774895f345f082020b52d8.tar.gz hugo-b3cb6788b2634a89ae774895f345f082020b52d8.zip |
Move all Kind constants to its own package
See #11256
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index ec95f5eba..6d206d7a4 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -45,6 +45,7 @@ import ( "github.com/gohugoio/hugo/output" "github.com/gohugoio/hugo/related" "github.com/gohugoio/hugo/resources/images" + "github.com/gohugoio/hugo/resources/kinds" "github.com/gohugoio/hugo/resources/page" "github.com/gohugoio/hugo/resources/page/pagemeta" "github.com/spf13/afero" @@ -940,11 +941,11 @@ func createDefaultOutputFormats(allFormats output.Formats) map[string][]string { } m := map[string][]string{ - page.KindPage: {htmlOut.Name}, - page.KindHome: defaultListTypes, - page.KindSection: defaultListTypes, - page.KindTerm: defaultListTypes, - page.KindTaxonomy: defaultListTypes, + kinds.KindPage: {htmlOut.Name}, + kinds.KindHome: defaultListTypes, + kinds.KindSection: defaultListTypes, + kinds.KindTerm: defaultListTypes, + kinds.KindTaxonomy: defaultListTypes, } // May be disabled |