summaryrefslogtreecommitdiffstats
path: root/hugolib/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r--hugolib/config_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go
index bda1c7fb5..8c7d396ef 100644
--- a/hugolib/config_test.go
+++ b/hugolib/config_test.go
@@ -153,6 +153,9 @@ name = "menu-top-main"
baseURL = "http://bep.is/"
# Can not be set in theme.
+disableKinds = ["taxonomy", "term"]
+
+# Can not be set in theme.
[frontmatter]
expiryDate = ["date"]
@@ -228,6 +231,9 @@ name = "menu-theme"
got := b.Cfg.Get("").(maps.Params)
+ // Issue #8866
+ b.Assert(b.Cfg.Get("disableKinds"), qt.IsNil)
+
b.Assert(got["params"], qt.DeepEquals, maps.Params{
"b": maps.Params{
"b1": "b1 main",