mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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.
|
// Order by Weight, Date, LinkTitle and then full file path.
|
||||||
func (p Pages) Sort() {
|
func (p Pages) Sort() {
|
||||||
// Remove in Hugo 0.51
|
// Remove in Hugo 0.51
|
||||||
helpers.Deprecated("Pages", "Sort", "Use .ByWeight", false)
|
helpers.Deprecated("Pages", "Sort", "Use .ByWeight", true)
|
||||||
p.sort()
|
p.sort()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue