diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-28 12:04:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-28 15:14:23 +0200 |
commit | 1c97095ac01d7fa9a3e879fa69f7b550c200b567 (patch) | |
tree | 09e3239fcf740c329e209cc1d40a4311e721881b /config | |
parent | b3cb6788b2634a89ae774895f345f082020b52d8 (diff) | |
download | hugo-1c97095ac01d7fa9a3e879fa69f7b550c200b567.tar.gz hugo-1c97095ac01d7fa9a3e879fa69f7b550c200b567.zip |
Warn about unknown kinds in disableKinds
See #11256
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index 6d206d7a4..00453fb6c 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -244,6 +244,10 @@ func (c *Config) CompileConfig(logger loggers.Logger) error { // Legacy config. kind = "taxonomy" } + if kinds.GetKindAny(kind) == "" { + logger.Warnf("Unknown kind %q in disableKinds", kind) + continue + } disabledKinds[kind] = true } kindOutputFormats := make(map[string]output.Formats) |