commands, hugolib: Unify case of config variable names

This commit is contained in:
bogem 2016-11-18 23:21:45 +01:00 committed by Bjørn Erik Pedersen
parent dec1706ae0
commit 713f577a27
2 changed files with 5 additions and 5 deletions

View file

@ -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 != "" {

View file

@ -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)