1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-05-01 07:07:39 +00:00

Make multilingual respect DisableSitemap

Fixes 
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
}
if viper.GetBool("DisableSitemap") {
return nil
}
// TODO(bep) DRY
sitemapDefault := parseSitemap(viper.GetStringMap("Sitemap"))