summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/templatestore_integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/templatestore_integration_test.go')
-rw-r--r--tpl/tplimpl/templatestore_integration_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/tpl/tplimpl/templatestore_integration_test.go b/tpl/tplimpl/templatestore_integration_test.go
index 638341581..8d3e52468 100644
--- a/tpl/tplimpl/templatestore_integration_test.go
+++ b/tpl/tplimpl/templatestore_integration_test.go
@@ -1396,3 +1396,19 @@ layouts/taxononmy.html.html
b.AssertFileExists("public/p1/index.html", false)
}
}
+
+func TestTemplateLoopBlogVsBlogrollIssue13672(t *testing.T) {
+ t.Parallel()
+ files := `
+-- hugo.toml --
+-- layouts/blog/all.html --
+blog/all.html
+-- layouts/blogroll/all.html --
+blogroll/all.html
+-- content/blogroll/p1.md --
+`
+
+ b := hugolib.Test(t, files)
+
+ b.AssertFileContent("public/blogroll/p1/index.html", "blogroll/all.html")
+}