mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
node to page: Only return regular pages in home.Data.Pages
Returning all types is both confusing and too breaking. All page types can be fetched in .Site.Pages. Updates #2297
This commit is contained in:
@@ -1466,7 +1466,7 @@ func (p *Page) prepareData(s *Site) error {
|
||||
switch p.Kind {
|
||||
case KindPage:
|
||||
case KindHome:
|
||||
pages = s.findPagesByKindNotIn(KindHome, s.Pages)
|
||||
pages = s.RegularPages
|
||||
case KindSection:
|
||||
sectionData, ok := s.Sections[p.sections[0]]
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user