Make removal of accents in taxonomy and section paths optional

And default off.

Fixes #1180
This commit is contained in:
Bjørn Erik Pedersen
2015-06-16 19:25:48 +02:00
parent 847ad36e45
commit 4b7c1342fd
3 changed files with 17 additions and 5 deletions

View File

@@ -141,6 +141,7 @@ func LoadDefaultSettings() {
viper.SetDefault("IgnoreCache", false)
viper.SetDefault("CanonifyURLs", false)
viper.SetDefault("RelativeURLs", false)
viper.SetDefault("RemovePathAccents", false)
viper.SetDefault("Taxonomies", map[string]string{"tag": "tags", "category": "categories"})
viper.SetDefault("Permalinks", make(hugolib.PermalinkOverrides, 0))
viper.SetDefault("Sitemap", hugolib.Sitemap{Priority: -1})
@@ -192,7 +193,7 @@ func InitializeConfig() {
if hugoCmdV.PersistentFlags().Lookup("disableSitemap").Changed {
viper.Set("DisableSitemap", DisableSitemap)
}
if hugoCmdV.PersistentFlags().Lookup("verbose").Changed {
viper.Set("Verbose", Verbose)
}