mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:21:14 +00:00
hugolib: Bump to ERROR for the deprecated Pages.Sort
This commit is contained in:
parent
6c6a6c87ec
commit
faeb55c1d8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue