From 54e417681d7bc625a6bfc4bb0f79858cf113600a Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Mon, 16 Feb 2015 13:14:47 -0700 Subject: [PATCH] Make "Indexes" the alias and "Taxonomies" the canonical name ... rather than the other way around. Discovered thanks to the new `hugo config` command. --- commands/hugo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index 62f5f3d01..2a3f99b1e 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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") } - viper.RegisterAlias("taxonomies", "indexes") + viper.RegisterAlias("indexes", "taxonomies") viper.SetDefault("Watch", false) viper.SetDefault("MetaDataFormat", "toml") @@ -127,7 +127,7 @@ func InitializeConfig() { viper.SetDefault("UglyUrls", false) viper.SetDefault("Verbose", 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("Sitemap", hugolib.Sitemap{Priority: -1}) viper.SetDefault("PygmentsStyle", "monokai")