mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Remove and update deprecation status
This commit is contained in:
@@ -881,12 +881,6 @@ func (p *Page) analyzePage() {
|
||||
})
|
||||
}
|
||||
|
||||
func (p *Page) Extension() string {
|
||||
// Remove in Hugo 0.22.
|
||||
helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", true)
|
||||
return p.extension
|
||||
}
|
||||
|
||||
// HasShortcode return whether the page has a shortcode with the given name.
|
||||
// This method is mainly motivated with the Hugo Docs site's need for a list
|
||||
// of pages with the `todo` shortcode in it.
|
||||
@@ -1849,12 +1843,6 @@ func (p *Page) copy() *Page {
|
||||
return &c
|
||||
}
|
||||
|
||||
func (p *Page) Now() time.Time {
|
||||
// Delete in Hugo 0.22
|
||||
helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
func (p *Page) Hugo() *HugoInfo {
|
||||
return hugoInfo
|
||||
}
|
||||
|
Reference in New Issue
Block a user