mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
8fe48a6576
commit
72bda5ad26
1 changed files with 3 additions and 2 deletions
|
@ -1243,7 +1243,6 @@ func (s *Site) assembleMenus() {
|
|||
|
||||
func (s *Site) assembleTaxonomies() {
|
||||
s.Taxonomies = make(TaxonomyList)
|
||||
s.Sections = make(Taxonomy)
|
||||
|
||||
taxonomies := viper.GetStringMapString("Taxonomies")
|
||||
jww.INFO.Printf("found taxonomies: %#v\n", taxonomies)
|
||||
|
@ -1276,7 +1275,6 @@ func (s *Site) assembleTaxonomies() {
|
|||
}
|
||||
|
||||
s.Info.Taxonomies = s.Taxonomies
|
||||
s.Info.Sections = s.Sections
|
||||
}
|
||||
|
||||
// Prepare pages for a new full build.
|
||||
|
@ -1291,6 +1289,9 @@ func (s *Site) resetPageBuildState() {
|
|||
}
|
||||
|
||||
func (s *Site) assembleSections() {
|
||||
s.Sections = make(Taxonomy)
|
||||
s.Info.Sections = s.Sections
|
||||
|
||||
for i, p := range s.Pages {
|
||||
s.Sections.add(p.Section(), WeightedPage{s.Pages[i].Weight, s.Pages[i]}, s.Info.preserveTaxonomyNames)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue