mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 18:02:09 -05:00
hugolib: The deprecated Extension, Now and TargetPath will now ERROR
This commit is contained in:
parent
5794a265b4
commit
544f0a6394
2 changed files with 3 additions and 3 deletions
|
@ -749,7 +749,7 @@ func (p *Page) analyzePage() {
|
||||||
|
|
||||||
func (p *Page) Extension() string {
|
func (p *Page) Extension() string {
|
||||||
// Remove in Hugo 0.22.
|
// 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
|
return p.extension
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1510,7 +1510,7 @@ func (p *Page) copy() *Page {
|
||||||
|
|
||||||
func (p *Page) Now() time.Time {
|
func (p *Page) Now() time.Time {
|
||||||
// Delete in Hugo 0.22
|
// 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()
|
return time.Now()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,6 +251,6 @@ func (p *Page) createRelativePermalinkForOutputFormat(f output.Format) string {
|
||||||
|
|
||||||
func (p *Page) TargetPath() (outfile string) {
|
func (p *Page) TargetPath() (outfile string) {
|
||||||
// Delete in Hugo 0.22
|
// 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 ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue