Include Section Taxonomy into SiteInfo

This allows to build more complex pages, like :
http://martinfowler.com/tags/
This commit is contained in:
Rinat Abdullin 2014-05-13 20:46:04 +06:00 committed by spf13
parent 35a605976e
commit 4ebaec8906

View file

@ -76,6 +76,7 @@ type SiteInfo struct {
BaseUrl template.URL
Taxonomies TaxonomyList
Indexes *TaxonomyList // legacy, should be identical to Taxonomies
Sections Taxonomy
Recent *Pages
Menus *Menus
Title string
@ -495,6 +496,7 @@ func (s *Site) assembleTaxonomies() {
s.Info.Taxonomies = s.Taxonomies
s.Info.Indexes = &s.Taxonomies
s.Info.Sections = s.Sections
}
func (s *Site) assembleSections() {