mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-02 15:20:28 +00: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
|
@ -76,6 +76,7 @@ type SiteInfo struct {
|
||||||
BaseUrl template.URL
|
BaseUrl template.URL
|
||||||
Taxonomies TaxonomyList
|
Taxonomies TaxonomyList
|
||||||
Indexes *TaxonomyList // legacy, should be identical to Taxonomies
|
Indexes *TaxonomyList // legacy, should be identical to Taxonomies
|
||||||
|
Sections Taxonomy
|
||||||
Recent *Pages
|
Recent *Pages
|
||||||
Menus *Menus
|
Menus *Menus
|
||||||
Title string
|
Title string
|
||||||
|
@ -495,6 +496,7 @@ func (s *Site) assembleTaxonomies() {
|
||||||
|
|
||||||
s.Info.Taxonomies = s.Taxonomies
|
s.Info.Taxonomies = s.Taxonomies
|
||||||
s.Info.Indexes = &s.Taxonomies
|
s.Info.Indexes = &s.Taxonomies
|
||||||
|
s.Info.Sections = s.Sections
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Site) assembleSections() {
|
func (s *Site) assembleSections() {
|
||||||
|
|
Loading…
Reference in a new issue