Skip to content

Commit

Permalink
hugolib: Be a litle more specific in NextPage TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Sep 26, 2018
1 parent ad705aa commit fb732d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/page.go
Expand Up @@ -2310,13 +2310,13 @@ func (p *Page) pathOrTitle() string {
} }


func (p *Page) Next() *Page { func (p *Page) Next() *Page {
// TODO Remove in Hugo 0.52 // TODO Remove the deprecation notice (but keep PrevPage as an alias) Hugo 0.52
helpers.Deprecated("Page", ".Next", "Use .PrevPage (yes, not .NextPage).", false) helpers.Deprecated("Page", ".Next", "Use .PrevPage (yes, not .NextPage).", false)
return p.PrevPage return p.PrevPage
} }


func (p *Page) Prev() *Page { func (p *Page) Prev() *Page {
// TODO Remove in Hugo 0.52 // TODO Remove the deprecation notice (but keep NextPage as an alias) Hugo 0.52
helpers.Deprecated("Page", ".Prev", "Use .NextPage (yes, not .PrevPage).", false) helpers.Deprecated("Page", ".Prev", "Use .NextPage (yes, not .PrevPage).", false)
return p.NextPage return p.NextPage
} }

0 comments on commit fb732d5

Please sign in to comment.