Make multilingual respect DisableSitemap

Fixes #2485
This commit is contained in:
Bjørn Erik Pedersen 2016-09-23 10:30:55 +02:00
parent 73894cca56
commit 63a6da06d8

View file

@ -339,6 +339,10 @@ func (h *HugoSites) render() error {
return nil return nil
} }
if viper.GetBool("DisableSitemap") {
return nil
}
// TODO(bep) DRY // TODO(bep) DRY
sitemapDefault := parseSitemap(viper.GetStringMap("Sitemap")) sitemapDefault := parseSitemap(viper.GetStringMap("Sitemap"))