shithub: hugo

Download patch

ref: fb732d5322381ee7f3a849258419cef7bbf1487b
parent: ad705aac0649fa3102f7639bc4db65d45e108ee2
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Sep 26 05:26:53 EDT 2018

hugolib: Be a litle more specific in NextPage TODO

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -2310,13 +2310,13 @@
 }
 
 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)
 	return p.PrevPage
 }
 
 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)
 	return p.NextPage
 }