ref: 713f577a275174c2450fff4f24e454819f6144be
parent: dec1706ae0439bc6241332c6c9e7e6a818a203f0
author: bogem <albertnigma@gmail.com>
date: Fri Nov 18 18:21:45 EST 2016
commands, hugolib: Unify case of config variable names
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -279,7 +279,7 @@
}
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 != "" {--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -951,7 +951,7 @@
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 @@
}
}
- 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 @@
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 @@
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)--
⑨