mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -1586,20 +1586,6 @@ func (s *Site) resetBuildState() {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Site) kindFromSections(sections []string) string {
|
||||
if len(sections) == 0 {
|
||||
return KindSection
|
||||
}
|
||||
|
||||
if _, isTaxonomy := s.Taxonomies[sections[0]]; isTaxonomy {
|
||||
if len(sections) == 1 {
|
||||
return KindTaxonomyTerm
|
||||
}
|
||||
return KindTaxonomy
|
||||
}
|
||||
return KindSection
|
||||
}
|
||||
|
||||
func (s *Site) layouts(p *PageOutput) ([]string, error) {
|
||||
return s.layoutHandler.For(p.layoutDescriptor, p.outputFormat)
|
||||
}
|
||||
|
Reference in New Issue
Block a user