Skip to content

Commit

Permalink
hugolib: Don't use the global warning logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 17, 2019
1 parent 0f8a81f commit f54d474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f54d474

Please sign in to comment.