diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 9c8331838..751669b20 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -339,6 +339,10 @@ func (h *HugoSites) render() error { return nil } + if viper.GetBool("DisableSitemap") { + return nil + } + // TODO(bep) DRY sitemapDefault := parseSitemap(viper.GetStringMap("Sitemap"))