diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 21:11:45 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 21:11:45 +0100 |
commit | faeb55c1d827f0ea994551a103ff4f7448786d39 (patch) | |
tree | 6b38469281acbabda6825375ab956c47c61837b5 | |
parent | 6c6a6c87ec2b5ac7342e268ab47861429230f7f4 (diff) |
hugolib: Bump to ERROR for the deprecated Pages.Sort
-rw-r--r-- | hugolib/pageSort.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pageSort.go b/hugolib/pageSort.go index 92b767ffe..055519b04 100644 --- a/hugolib/pageSort.go +++ b/hugolib/pageSort.go @@ -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() } |