commit c9731b2c2a4ac68d9f895e7513c014744629e406
parent 9ebbf1b054d0e56d708a20bc64f3539440bd5f8a
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 8 Apr 2017 18:02:36 +0200
hugolib: Delay deletion of Page.Now()
Looking at the state of the themes, it will be too painful to log ERROR now.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -1506,8 +1506,8 @@ func (p *Page) copy() *Page {
}
func (p *Page) Now() time.Time {
- // Delete in Hugo 0.21
- helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
+ // Delete in Hugo 0.22
+ helpers.Deprecated("Page", "Now", "Use now (the template func)", false)
return time.Now()
}