Sort section pages after parsing
This commit is contained in:
parent
6df68da84b
commit
fd10e77e39
|
@ -131,6 +131,8 @@ impl Site {
|
|||
}
|
||||
|
||||
for (parent_path, section) in &mut sections {
|
||||
section.pages.sort_by(|a, b| a.partial_cmp(b).unwrap());
|
||||
|
||||
match grandparent_paths.get(parent_path) {
|
||||
Some(paths) => section.subsections.extend(paths.clone()),
|
||||
None => continue,
|
||||
|
|
Loading…
Reference in a new issue