hugolib: Break early from sitemap disabled check
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 May 2017 09:55:51 +0000 (12:55 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 May 2017 09:55:51 +0000 (12:55 +0300)
See #3544

hugolib/hugo_sites.go

index 1091660e79a236a23819e62e7b67564ee851bb03..c028dad4a6eed90411f18bc103aa10fe169a0cfb 100644 (file)
@@ -273,6 +273,7 @@ func (h *HugoSites) renderCrossSitesArtifacts() error {
        for _, s := range h.Sites {
                if s.isEnabled(kindSitemap) {
                        sitemapEnabled = true
+                       break
                }
        }