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

@@ -525,10 +525,10 @@ func (h *HugoSites) createMissingPages() error {
first.AllPages = append(first.AllPages, newPages...)
first.AllPages.Sort()
first.AllPages.sort()
for _, s := range h.Sites {
s.Pages.Sort()
s.Pages.sort()
}
for i := 1; i < len(h.Sites); i++ {
@@ -574,7 +574,7 @@ func (h *HugoSites) setupTranslations() {
allPages = append(allPages, s.Pages...)
}
allPages.Sort()
allPages.sort()
for _, s := range h.Sites {
s.AllPages = allPages