hugolib: Deprecate Pages.Sort

In favour of ByWeight.
This commit is contained in:
Bjørn Erik Pedersen
2018-09-21 14:23:00 +02:00
parent 2eed35c826
commit 2e2e34a935
6 changed files with 20 additions and 12 deletions

View File

@@ -326,7 +326,7 @@ func (s *Site) assembleSections() Pages {
for _, sect := range sectionPages {
if sect.parent != nil {
sect.parent.subSections.Sort()
sect.parent.subSections.sort()
}
for i, p := range sect.Pages {
@@ -356,7 +356,7 @@ func (s *Site) assembleSections() Pages {
}
func (p *Page) setPagePages(pages Pages) {
pages.Sort()
pages.sort()
p.Pages = pages
p.data = make(map[string]interface{})
p.data["Pages"] = pages