shithub: hugo

Download patch

ref: 63a6da06d87a8f299a954858ad1300dfc225544b
parent: 73894cca56597c814ba8decb838d9dc80634396c
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Sep 23 06:30:55 EDT 2016

Make multilingual respect DisableSitemap

Fixes #2485

--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -339,6 +339,10 @@
 		return nil
 	}
 
+	if viper.GetBool("DisableSitemap") {
+		return nil
+	}
+
 	// TODO(bep) DRY
 	sitemapDefault := parseSitemap(viper.GetStringMap("Sitemap"))