Skip to content

Commit 7ff5ec7

Browse files
bepjmooring
andcommitted
tpl: Add test for recent template selection regression
Closes #13868 Co-authored-by: Joe Mooring <[email protected]>
1 parent 3937ab2 commit 7ff5ec7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tpl/tplimpl/templatestore_integration_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,3 +1603,24 @@ a|b
16031603
b.AssertFileContent("public/index.html", "<table>")
16041604
b.AssertFileContent("public/index.json", "<table>")
16051605
}
1606+
1607+
func TestPageKindIssue13868(t *testing.T) {
1608+
t.Parallel()
1609+
1610+
files := `
1611+
-- hugo.toml --
1612+
disableKinds = ['home','rss','section','sitemap','taxonomy','term']
1613+
-- content/p1.md --
1614+
---
1615+
title: p1
1616+
---
1617+
-- layouts/page.html --
1618+
layouts/page.html
1619+
-- layouts/p1/page.html --
1620+
layouts/p1/page.html
1621+
`
1622+
1623+
b := hugolib.Test(t, files)
1624+
1625+
b.AssertFileContent("public/p1/index.html", "layouts/p1/page.html")
1626+
}

0 commit comments

Comments
 (0)