mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -269,6 +269,17 @@ func (h *HugoSites) renderCrossSitesArtifacts() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
sitemapEnabled := false
|
||||
for _, s := range h.Sites {
|
||||
if s.isEnabled(kindSitemap) {
|
||||
sitemapEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
if !sitemapEnabled {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO(bep) DRY
|
||||
sitemapDefault := parseSitemap(h.Cfg.GetStringMap("sitemap"))
|
||||
|
||||
|
Reference in New Issue
Block a user