summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-17 17:13:33 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-17 18:50:16 +0200
commitea6816030081b2cffa6c0ae9ca5429a2c6fe2fa5 (patch)
tree7c87f01bf2b244eba6b30030eb2f7e662205fe96 /hugolib/page.go
parent564cf1bb11e100891992e9131b271a79ea7fc528 (diff)
hugolib: Don't use the global warning logger
See #6238
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index f8f6741d2..f08e309d4 100644
--- a/hugolib/page.go
+++ b/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()