mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Include Section Taxonomy into SiteInfo
This allows to build more complex pages, like : http://martinfowler.com/tags/
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user