-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
This is a regression from 0.147.9 to 0.148.0.
Git bisect says cfc8d31 is the first bad commit. I made this change to address #13826, and it is obviously missing some test cases.
project/
├── content/
│ └── p1.md
├── layouts/
│ ├── p1/
│ │ └── page.html <-- v0.147.9 uses this (correct)
│ └── page.html <-- v0.148.0 uses this (incorrect)
└── hugo.toml
func TestIssue13868(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['home','rss','section','sitemap','taxonomy','term']
-- content/p1.md --
---
title: p1
---
-- layouts/page.html --
layouts/page.html
-- layouts/p1/page.html --
layouts/p1/page.html
`
b := hugolib.Test(t, files)
b.AssertFileContent("public/p1/index.html", "layouts/p1/page.html")
}
Reference: https://discourse.gohugo.io/t/custom-layout-not-working-for-contact-md/55405