Remove WARN with false negatives

Fixes #13806
This commit is contained in:
Bjørn Erik Pedersen
2025-06-22 13:07:34 +02:00
parent 36f6f987a9
commit 6a4a3ab8f8
3 changed files with 27 additions and 26 deletions

View File

@@ -938,3 +938,30 @@ path = '/p1'
b.AssertFileContent("public/p1/index.html", "p1|bar") // actual content is "p1|"
}
func TestCascadeWarnOverrideIssue13806(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['home','rss','section','sitemap','taxonomy','term']
[[cascade]]
[cascade.params]
searchable = true
[cascade.target]
kind = 'page'
-- content/something.md --
---
title: Something
params:
searchable: false
---
-- layouts/all.html --
All.
`
b := Test(t, files, TestOptWarn())
b.AssertLogContains("! WARN")
}