shithub: hugo

Download patch

ref: 6e0f326b9dd3cf60bf87c99c7957c519d0ddd9ef
parent: 695be00c0715fdfeda7ed256196f77cf72240b38
author: Bjørn Erik Pedersen <[email protected]>
date: Sun Jan 1 08:10:36 EST 2017

hugolib: Deprecate Page.Now

Use `now` (template func).

See cabc6b31866e3bb86759f6615a83cec4c3610e82

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