hugolib: Bump to ERROR for the deprecated Pages.Sort

This commit is contained in:
Bjørn Erik Pedersen 2018-11-01 21:11:45 +01:00
parent 6c6a6c87ec
commit faeb55c1d8
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

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