mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 02:01:29 +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 {
|
||||
// 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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue