hugolib: Deprecate Page.Now

Use `now` (template func).

See cabc6b3186
This commit is contained in:
Bjørn Erik Pedersen 2017-01-01 13:10:36 +01:00
parent 695be00c07
commit 6e0f326b9d

View file

@ -1579,6 +1579,8 @@ func (p *Page) copy() *Page {
}
func (p *Page) Now() time.Time {
// Delete in Hugo 0.21
helpers.Deprecated("Page", "Now", "now (the template func)", false)
return time.Now()
}