From: Bjørn Erik Pedersen Date: Sat, 8 Apr 2017 16:02:36 +0000 (+0200) Subject: hugolib: Delay deletion of Page.Now() X-Git-Tag: v0.20~5 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9731b2c2a4ac68d9f895e7513c014744629e406;p=brevno-suite%2Fhugo hugolib: Delay deletion of Page.Now() Looking at the state of the themes, it will be too painful to log ERROR now. --- diff --git a/hugolib/page.go b/hugolib/page.go index 259b2fb9..677343f1 100644 --- 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() }