mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
@@ -1507,7 +1507,7 @@ 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)", false)
|
||||
helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
@@ -1515,13 +1515,6 @@ func (p *Page) Hugo() *HugoInfo {
|
||||
return hugoInfo
|
||||
}
|
||||
|
||||
func (p *Page) RSSlink() template.URL {
|
||||
// TODO(bep) we cannot have two of these
|
||||
// Remove in Hugo 0.20
|
||||
helpers.Deprecated(".Page", "RSSlink", "Use RSSLink", true)
|
||||
return p.RSSLink()
|
||||
}
|
||||
|
||||
func (p *Page) Ref(refs ...string) (string, error) {
|
||||
if len(refs) == 0 {
|
||||
return "", nil
|
||||
|
Reference in New Issue
Block a user