commit 4ebaec890614b8b2f53e2a984aed48b3ac31938e
parent 35a605976ecc110e21af4ae4eae8d92768249197
Author: Rinat Abdullin <rinat.abdullin@gmail.com>
Date: Tue, 13 May 2014 20:46:04 +0600
Include Section Taxonomy into SiteInfo
This allows to build more complex pages, like :
http://martinfowler.com/tags/
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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() {