hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 63a6da06d87a8f299a954858ad1300dfc225544b
parent 73894cca56597c814ba8decb838d9dc80634396c
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri, 23 Sep 2016 10:30:55 +0200

Make multilingual respect DisableSitemap

Fixes #2485

Diffstat:
Mhugolib/hugo_sites.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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"))