func (p *Page) Extension() string {
// Remove in Hugo 0.22.
- helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", false)
+ helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", true)
return p.extension
}
func (p *Page) Now() time.Time {
// Delete in Hugo 0.22
- helpers.Deprecated("Page", "Now", "Use now (the template func)", false)
+ helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
return time.Now()
}
func (p *Page) TargetPath() (outfile string) {
// Delete in Hugo 0.22
- helpers.Deprecated("Page", "TargetPath", "This method does not make sanse any more.", false)
+ helpers.Deprecated("Page", "TargetPath", "This method does not make sanse any more.", true)
return ""
}