Sort section pages after parsing

This commit is contained in:
Vincent Prouillet 2017-03-19 20:34:02 +09:00
parent 6df68da84b
commit fd10e77e39

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,