mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -295,12 +295,23 @@ func (h *HugoSites) createMissingPages() error {
|
||||
}
|
||||
|
||||
if len(newPages) > 0 {
|
||||
// This resorting is unfortunate, but it also needs to be sorted
|
||||
// when sections are created.
|
||||
first := h.Sites[0]
|
||||
|
||||
first.AllPages = append(first.AllPages, newPages...)
|
||||
|
||||
first.AllPages.Sort()
|
||||
|
||||
for _, s := range h.Sites {
|
||||
s.Pages.Sort()
|
||||
}
|
||||
|
||||
for i := 1; i < len(h.Sites); i++ {
|
||||
h.Sites[i].AllPages = first.AllPages
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user