mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-24 08:42:47 +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:
parent
9ebbf1b054
commit
c9731b2c2a
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue