tpl: Fix legacy section mappings

Fixes #13584
This commit is contained in:
Bjørn Erik Pedersen
2025-04-11 11:20:03 +02:00
parent c19f1f2363
commit 1074e01152
4 changed files with 97 additions and 25 deletions

View File

@@ -214,3 +214,18 @@ All.
b.AssertFileContent("public/index.html", "All.")
b.AssertFileContent("public/amp/index.html", "All.")
}
// Issue #13584.
func TestLegacySectionSection(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
-- content/mysection/_index.md --
-- layouts/section/section.html --
layouts/section/section.html
`
b := hugolib.Test(t, files)
b.AssertFileContent("public/mysection/index.html", "layouts/section/section.html")
}