1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

hugolib: Deprecate Page.Now

Use `now` (template func).

See cabc6b31866e3bb86759f6615a83cec4c3610e82
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 { func (p *Page) Now() time.Time {
// Delete in Hugo 0.21
helpers.Deprecated("Page", "Now", "now (the template func)", false)
return time.Now() return time.Now()
} }