mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
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:
1 parent
9ebbf1b054
commit
c9731b2c2a
1 file changed
+2
-2
+2
-2
@@ -1506,8 +1506,8 @@ func (p *Page) copy() *Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *Page) Now() time.Time {
|
func (p *Page) Now() time.Time {
|
||||||
// Delete in Hugo 0.21
|
// Delete in Hugo 0.22
|
||||||
helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
|
helpers.Deprecated("Page", "Now", "Use now (the template func)", false)
|
||||||
return time.Now()
|
return time.Now()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user