Skip to content

Commit

Permalink
hugolib: The deprecated Extension, Now and TargetPath will now ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed May 10, 2017
1 parent 5794a26 commit 544f0a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hugolib/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func (p *Page) analyzePage() {

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
}

Expand Down Expand Up @@ -1510,7 +1510,7 @@ func (p *Page) copy() *Page {

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()
}

Expand Down
2 changes: 1 addition & 1 deletion hugolib/page_paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,6 @@ func (p *Page) createRelativePermalinkForOutputFormat(f output.Format) string {

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 ""
}

0 comments on commit 544f0a6

Please sign in to comment.