mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Make sure that sitemaps gets generated even if there is a content bundle with the same path
Fixes #12183
This commit is contained in:
@@ -148,3 +148,25 @@ Home.
|
||||
|
||||
b.AssertFileContent("public/sitemap.xml", "https://example.com/en/sitemap.xml")
|
||||
}
|
||||
|
||||
func TestSitemapAndContentBundleNamedSitemap(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
-- hugo.toml --
|
||||
disableKinds = ['home','rss','section','taxonomy','term']
|
||||
-- layouts/_default/single.html --
|
||||
layouts/_default/single.html
|
||||
-- layouts/sitemap/single.html --
|
||||
layouts/sitemap/single.html
|
||||
-- content/sitemap/index.md --
|
||||
---
|
||||
title: My sitemap
|
||||
type: sitemap
|
||||
---
|
||||
`
|
||||
|
||||
b := Test(t, files)
|
||||
|
||||
b.AssertFileExists("public/sitemap.xml", true)
|
||||
}
|
||||
|
Reference in New Issue
Block a user