shithub: hugo

Download patch

ref: c9731b2c2a4ac68d9f895e7513c014744629e406
parent: 9ebbf1b054d0e56d708a20bc64f3539440bd5f8a
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Apr 8 14:02:36 EDT 2017

hugolib: Delay deletion of Page.Now()

Looking at the state of the themes, it will be too painful to log ERROR now.

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -1506,8 +1506,8 @@
 }
 
 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()
 }