Permalink
Browse files

hugolib: Bump to ERROR for the deprecated Pages.Sort

  • Loading branch information...
bep committed Nov 1, 2018
1 parent 6c6a6c8 commit faeb55c1d827f0ea994551a103ff4f7448786d39
Showing with 1 addition and 1 deletion.
  1. +1 −1 hugolib/pageSort.go
View
@@ -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()
}

0 comments on commit faeb55c

Please sign in to comment.