mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
268065cb2d
commit
e3dc5240f0
6 changed files with 74 additions and 11 deletions
|
@ -350,6 +350,25 @@ menu:
|
|||
b.AssertFileContent("public/index.html", "A|Children:C|B|")
|
||||
}
|
||||
|
||||
// Issue #8825
|
||||
func TestMenuParamsEmptyYaml(t *testing.T) {
|
||||
b := newTestSitesBuilder(t).WithConfigFile("yaml", `
|
||||
|
||||
`)
|
||||
|
||||
b.WithTemplates("index.html", `{{ site.Menus }}`)
|
||||
|
||||
b.WithContent("p1.md", `---
|
||||
menus:
|
||||
main:
|
||||
identity: journal
|
||||
weight: 2
|
||||
params:
|
||||
---
|
||||
`)
|
||||
b.Build(BuildCfg{})
|
||||
}
|
||||
|
||||
func TestMenuParams(t *testing.T) {
|
||||
b := newTestSitesBuilder(t).WithConfigFile("toml", `
|
||||
[[menus.main]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue