func (s *Site) assembleTaxonomies() {
s.Taxonomies = make(TaxonomyList)
- s.Sections = make(Taxonomy)
taxonomies := viper.GetStringMapString("Taxonomies")
jww.INFO.Printf("found taxonomies: %#v\n", taxonomies)
}
s.Info.Taxonomies = s.Taxonomies
- s.Info.Sections = s.Sections
}
// Prepare pages for a new full build.
}
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)
}