mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Make "Indexes" the alias and "Taxonomies" the canonical name
... rather than the other way around. Discovered thanks to the new `hugo config` command.
This commit is contained in:
parent
d33a42f1d1
commit
54e417681d
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ func InitializeConfig() {
|
||||||
jww.ERROR.Println("Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details")
|
jww.ERROR.Println("Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details")
|
||||||
}
|
}
|
||||||
|
|
||||||
viper.RegisterAlias("taxonomies", "indexes")
|
viper.RegisterAlias("indexes", "taxonomies")
|
||||||
|
|
||||||
viper.SetDefault("Watch", false)
|
viper.SetDefault("Watch", false)
|
||||||
viper.SetDefault("MetaDataFormat", "toml")
|
viper.SetDefault("MetaDataFormat", "toml")
|
||||||
|
@ -127,7 +127,7 @@ func InitializeConfig() {
|
||||||
viper.SetDefault("UglyUrls", false)
|
viper.SetDefault("UglyUrls", false)
|
||||||
viper.SetDefault("Verbose", false)
|
viper.SetDefault("Verbose", false)
|
||||||
viper.SetDefault("CanonifyUrls", false)
|
viper.SetDefault("CanonifyUrls", false)
|
||||||
viper.SetDefault("Indexes", map[string]string{"tag": "tags", "category": "categories"})
|
viper.SetDefault("Taxonomies", map[string]string{"tag": "tags", "category": "categories"})
|
||||||
viper.SetDefault("Permalinks", make(hugolib.PermalinkOverrides, 0))
|
viper.SetDefault("Permalinks", make(hugolib.PermalinkOverrides, 0))
|
||||||
viper.SetDefault("Sitemap", hugolib.Sitemap{Priority: -1})
|
viper.SetDefault("Sitemap", hugolib.Sitemap{Priority: -1})
|
||||||
viper.SetDefault("PygmentsStyle", "monokai")
|
viper.SetDefault("PygmentsStyle", "monokai")
|
||||||
|
|
Loading…
Reference in a new issue