mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugolib: Be a litle more specific in NextPage TODO
This commit is contained in:
parent
ad705aac06
commit
fb732d5322
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue