mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Include Section Taxonomy into SiteInfo
This allows to build more complex pages, like : http://martinfowler.com/tags/
This commit is contained in:
parent
35a605976e
commit
4ebaec8906
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue