diff --git a/CHANGELOG.md b/CHANGELOG.md index ccf50b8a..86f43276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Switch to pulldown-cmark anchor rather than ours, some (very niche) edge cases are not supported anymore, you can also specify classes on headers now - Now outputs empty taxonomies instead of ignoring them -- Unify all sorting variable names in templates to `lower`/`higher` in order to make it easy to re-use templates and it +- Unify all pages sorting variable names in templates to `lower`/`higher` in order to make it easy to re-use templates and it was becoming hard to come up with names ### Other diff --git a/components/content/src/library.rs b/components/content/src/library.rs index aa433966..a4e4b4e3 100644 --- a/components/content/src/library.rs +++ b/components/content/src/library.rs @@ -772,11 +772,11 @@ mod tests { library.fill_backlinks(); assert_eq!(library.backlinks.len(), 3); - assert_eq!(library.backlinks["page1.md"], set! {"_index.md".to_owned()}); + assert_eq!(library.backlinks["page1.md"], set! {PathBuf::from("_index.md")}); assert_eq!( library.backlinks["page2.md"], - set! {"page1.md".to_owned(), "_index.md".to_owned()} + set! {PathBuf::from("page1.md"), PathBuf::from("_index.md")} ); - assert_eq!(library.backlinks["_index.md"], set! {"page2.md".to_owned()}); + assert_eq!(library.backlinks["_index.md"], set! {PathBuf::from("page2.md")}); } }