From 7ff5ec734c8e08415f0531c4760692f5f9bc5c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 27 Jul 2025 12:20:24 +0200 Subject: [PATCH] tpl: Add test for recent template selection regression Closes #13868 Co-authored-by: Joe Mooring --- tpl/tplimpl/templatestore_integration_test.go | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tpl/tplimpl/templatestore_integration_test.go b/tpl/tplimpl/templatestore_integration_test.go index 13c4d5af9..09b65d6e1 100644 --- a/tpl/tplimpl/templatestore_integration_test.go +++ b/tpl/tplimpl/templatestore_integration_test.go @@ -1603,3 +1603,24 @@ a|b b.AssertFileContent("public/index.html", "") b.AssertFileContent("public/index.json", "
") } + +func TestPageKindIssue13868(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") +}