mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -965,3 +965,27 @@ All.
|
||||
|
||||
b.AssertLogContains("! WARN")
|
||||
}
|
||||
|
||||
func TestCascadeNilMapIssue13853(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
-- hugo.toml --
|
||||
-- content/test/_index.md --
|
||||
---
|
||||
title: Test
|
||||
cascade:
|
||||
- build:
|
||||
list: local
|
||||
target:
|
||||
path: '{/test/**}'
|
||||
- params:
|
||||
title: 'Test page'
|
||||
target:
|
||||
path: '{/test/**}'
|
||||
---
|
||||
`
|
||||
|
||||
// Just verify that it does not panic.
|
||||
_ = Test(t, files)
|
||||
}
|
||||
|
Reference in New Issue
Block a user