mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-29 19:11:27 +00:00
parent
564cf1bb11
commit
ea68160300
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ func (p *pageState) Pages() page.Pages {
|
||||||
case page.KindHome:
|
case page.KindHome:
|
||||||
// See https://github.com/gohugoio/hugo/issues/6238
|
// See https://github.com/gohugoio/hugo/issues/6238
|
||||||
// Note: When making the change below, also remember RegularPages.
|
// Note: When making the change below, also remember RegularPages.
|
||||||
helpers.DistinctWarnLog.Println(`In the next Hugo version (0.58.0) we will change how $home.Pages behaves. If you want to list all regular pages, replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.`)
|
p.s.DistinctWarningLog.Println(`In the next Hugo version (0.58.0) we will change how $home.Pages behaves. If you want to list all regular pages, replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.`)
|
||||||
pages = p.s.RegularPages()
|
pages = p.s.RegularPages()
|
||||||
case page.KindSection:
|
case page.KindSection:
|
||||||
pages = p.getPagesAndSections()
|
pages = p.getPagesAndSections()
|
||||||
|
|
Loading…
Reference in a new issue