mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 10:02:12 -05:00
commands, hugolib: Unify case of config variable names
This commit is contained in:
parent
dec1706ae0
commit
713f577a27
2 changed files with 5 additions and 5 deletions
|
@ -279,7 +279,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !viper.GetBool("relativeURLs") && viper.GetString("baseURL") == "" {
|
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 != "" {
|
if theme != "" {
|
||||||
|
|
|
@ -951,7 +951,7 @@ func (s *Site) initializeSiteInfo() {
|
||||||
pathSpec: helpers.NewPathSpecFromConfig(lang),
|
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 {
|
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{})
|
sectionPagesMenus := make(map[string]interface{})
|
||||||
//creating flat hash
|
//creating flat hash
|
||||||
pages := s.Pages
|
pages := s.Pages
|
||||||
|
@ -1476,7 +1476,7 @@ func (s *Site) assembleTaxonomies() {
|
||||||
s.Taxonomies = make(TaxonomyList)
|
s.Taxonomies = make(TaxonomyList)
|
||||||
s.taxonomiesPluralSingular = make(map[string]string)
|
s.taxonomiesPluralSingular = make(map[string]string)
|
||||||
|
|
||||||
taxonomies := s.Language.GetStringMapString("Taxonomies")
|
taxonomies := s.Language.GetStringMapString("taxonomies")
|
||||||
jww.INFO.Printf("found taxonomies: %#v\n", taxonomies)
|
jww.INFO.Printf("found taxonomies: %#v\n", taxonomies)
|
||||||
|
|
||||||
for singular, plural := range 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 pages created\n", len(s.Pages))
|
||||||
jww.FEEDBACK.Printf("%d non-page files copied\n", len(s.Files))
|
jww.FEEDBACK.Printf("%d non-page files copied\n", len(s.Files))
|
||||||
jww.FEEDBACK.Printf("%d paginator pages created\n", s.Info.paginationPageCount)
|
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 {
|
for _, pl := range taxonomies {
|
||||||
jww.FEEDBACK.Printf("%d %s created\n", len(s.Taxonomies[pl]), pl)
|
jww.FEEDBACK.Printf("%d %s created\n", len(s.Taxonomies[pl]), pl)
|
||||||
|
|
Loading…
Reference in a new issue