Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-23 11:30:55 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-23 11:30:55 +0300
commit63a6da06d87a8f299a954858ad1300dfc225544b (patch)
treea033c2b900e6b31d5a58e0f2c69275f307b48993 /hugolib
parent73894cca56597c814ba8decb838d9dc80634396c (diff)
Make multilingual respect DisableSitemap
Fixes #2485
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/hugo_sites.go4
1 files changed, 4 insertions, 0 deletions
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"))