Browse Source

Sort section pages after parsing

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
fd10e77e39
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/site.rs

+ 2
- 0
src/site.rs View File

@@ -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…
Cancel
Save