mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
hugolib: Bump to ERROR for the deprecated Pages.Sort
This commit is contained in:
@@ -101,7 +101,7 @@ func (ps *pageSorter) Less(i, j int) bool { return ps.by(ps.pages[i], ps.pages[j
|
||||
// Order by Weight, Date, LinkTitle and then full file path.
|
||||
func (p Pages) Sort() {
|
||||
// Remove in Hugo 0.51
|
||||
helpers.Deprecated("Pages", "Sort", "Use .ByWeight", false)
|
||||
helpers.Deprecated("Pages", "Sort", "Use .ByWeight", true)
|
||||
p.sort()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user