shithub: hugo

Download patch

ref: 6049c3a10cedd4b05a23130811671ce8712b76f9
parent: 2a902bbca632153177c918a4d6eb3379dd6cc344
author: Vincent Batoufflet <[email protected]>
date: Wed May 7 04:56:57 EDT 2014

Update Sitemap default value syntax

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -109,7 +109,7 @@
 	viper.SetDefault("CanonifyUrls", false)
 	viper.SetDefault("Indexes", map[string]string{"tag": "tags", "category": "categories"})
 	viper.SetDefault("Permalinks", make(hugolib.PermalinkOverrides, 0))
-	viper.SetDefault("Sitemap", hugolib.Sitemap{"", -1})
+	viper.SetDefault("Sitemap", hugolib.Sitemap{Priority: -1})
 
 	if hugoCmdV.PersistentFlags().Lookup("build-drafts").Changed {
 		viper.Set("BuildDrafts", Draft)