mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib, output: Restrict Render to regular Pages
Using it for list pages doesn't work and has potential weird side-effects. The user probably meant to range over .Site.ReqularPages, and that is now marked clearly in the log.
This commit is contained in:
@@ -1668,7 +1668,7 @@ func (s *Site) kindFromSections(sections []string) string {
|
||||
return KindSection
|
||||
}
|
||||
|
||||
func (s *Site) layouts(p *PageOutput) []string {
|
||||
func (s *Site) layouts(p *PageOutput) ([]string, error) {
|
||||
return s.layoutHandler.For(p.layoutDescriptor, "", p.outputFormat)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user