diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-03-01 11:37:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-03-01 13:34:05 +0100 |
commit | 9dfa9e70e6ac56cfbb875caf5fed412eb2b22d82 (patch) | |
tree | 30167f680a7edc7d2b0e8526cbc67755dff8e768 /hugolib/content_map_page.go | |
parent | 3f217fd6647b859b828b2ab1798177bebda64a9a (diff) | |
download | hugo-9dfa9e70e6ac56cfbb875caf5fed412eb2b22d82.tar.gz hugo-9dfa9e70e6ac56cfbb875caf5fed412eb2b22d82.zip |
Make sure that sitemaps gets generated even if there is a content bundle with the same path
Fixes #12183
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r-- | hugolib/content_map_page.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index 5388426c9..ddc22bb66 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -1764,7 +1764,7 @@ func (sa *sitePagesAssembler) addStandalonePages() error { if s.conf.EnableRobotsTXT { if m.i == 0 || s.Conf.IsMultihost() { - addStandalone("/robots", kinds.KindRobotsTXT, output.RobotsTxtFormat) + addStandalone("/_robots", kinds.KindRobotsTXT, output.RobotsTxtFormat) } } @@ -1777,11 +1777,11 @@ func (sa *sitePagesAssembler) addStandalonePages() error { } if sitemapEnabled { - addStandalone("/sitemap", kinds.KindSitemap, output.SitemapFormat) + addStandalone("/_sitemap", kinds.KindSitemap, output.SitemapFormat) skipSitemapIndex := s.Conf.IsMultihost() || !(s.Conf.DefaultContentLanguageInSubdir() || s.Conf.IsMultiLingual()) if !skipSitemapIndex { - addStandalone("/sitemapindex", kinds.KindSitemapIndex, output.SitemapIndexFormat) + addStandalone("/_sitemapindex", kinds.KindSitemapIndex, output.SitemapIndexFormat) } } |