Skip to content
Permalink
Browse files

hugolib: Don't use the global warning logger

See #6238
  • Loading branch information...
bep committed Aug 17, 2019
1 parent 564cf1b commit ea6816030081b2cffa6c0ae9ca5429a2c6fe2fa5
Showing with 1 addition and 1 deletion.
  1. +1 −1 hugolib/page.go
@@ -177,7 +177,7 @@ func (p *pageState) Pages() page.Pages {
case page.KindHome:
// See https://github.com/gohugoio/hugo/issues/6238
// 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()
case page.KindSection:
pages = p.getPagesAndSections()

0 comments on commit ea68160

Please sign in to comment.
You can’t perform that action at this time.