hugolib: Delay deletion of Page.Now()

Looking at the state of the themes, it will be too painful to log ERROR now.
This commit is contained in:
Bjørn Erik Pedersen 2017-04-08 18:02:36 +02:00
parent 9ebbf1b054
commit c9731b2c2a

View File

@ -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()
}