Update Sitemap default value syntax
authorVincent Batoufflet <vincent@batoufflet.info>
Wed, 7 May 2014 06:56:57 +0000 (08:56 +0200)
committerspf13 <steve.francia@gmail.com>
Sat, 10 May 2014 03:11:37 +0000 (23:11 -0400)
commands/hugo.go

index 235f95f7538d26a9dc0bd61605d93aae24744c58..8d18b6252dfda751519c922293bd2490f89b1bb0 100644 (file)
@@ -109,7 +109,7 @@ func InitializeConfig() {
        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)