From 713f577a275174c2450fff4f24e454819f6144be Mon Sep 17 00:00:00 2001 From: bogem Date: Fri, 18 Nov 2016 23:21:45 +0100 Subject: [PATCH] commands, hugolib: Unify case of config variable names --- commands/hugo.go | 2 +- hugolib/site.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index 506708390..a36549142 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -279,7 +279,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error { } if !viper.GetBool("relativeURLs") && viper.GetString("baseURL") == "" { - jww.ERROR.Println("No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.") + jww.ERROR.Println("No 'baseURL' set in configuration or as a flag. Features like page menus will not work without one.") } if theme != "" { diff --git a/hugolib/site.go b/hugolib/site.go index 545ff6048..27f4b7f7b 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -951,7 +951,7 @@ func (s *Site) initializeSiteInfo() { pathSpec: helpers.NewPathSpecFromConfig(lang), } - s.Info.RSSLink = s.Info.permalinkStr(lang.GetString("RSSUri")) + s.Info.RSSLink = s.Info.permalinkStr(lang.GetString("rssURI")) } func (s *Site) hasTheme() bool { @@ -1412,7 +1412,7 @@ func (s *Site) assembleMenus() { } } - sectionPagesMenu := s.Language.GetString("SectionPagesMenu") + sectionPagesMenu := s.Language.GetString("sectionPagesMenu") sectionPagesMenus := make(map[string]interface{}) //creating flat hash pages := s.Pages @@ -1476,7 +1476,7 @@ func (s *Site) assembleTaxonomies() { s.Taxonomies = make(TaxonomyList) s.taxonomiesPluralSingular = make(map[string]string) - taxonomies := s.Language.GetStringMapString("Taxonomies") + taxonomies := s.Language.GetStringMapString("taxonomies") jww.INFO.Printf("found taxonomies: %#v\n", taxonomies) for singular, plural := range taxonomies { @@ -1642,7 +1642,7 @@ func (s *Site) Stats() { jww.FEEDBACK.Printf("%d pages created\n", len(s.Pages)) jww.FEEDBACK.Printf("%d non-page files copied\n", len(s.Files)) jww.FEEDBACK.Printf("%d paginator pages created\n", s.Info.paginationPageCount) - taxonomies := s.Language.GetStringMapString("Taxonomies") + taxonomies := s.Language.GetStringMapString("taxonomies") for _, pl := range taxonomies { jww.FEEDBACK.Printf("%d %s created\n", len(s.Taxonomies[pl]), pl)