From fe9e09e57b3451bf05f950054188e3954f7e1156 Mon Sep 17 00:00:00 2001 From: Peter Sooley Date: Fri, 31 Dec 2021 17:11:21 -0500 Subject: [PATCH] fix path used for finding partials --- src/preprocess/links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess/links.rs b/src/preprocess/links.rs index edd97ba9..ab74aa09 100644 --- a/src/preprocess/links.rs +++ b/src/preprocess/links.rs @@ -46,7 +46,7 @@ impl Preprocessor for LinkPreprocessor { book.for_each_mut(|section: &mut BookItem| { if let BookItem::Chapter(ref mut ch) = *section { - if let Some(ref chapter_path) = ch.path { + if let Some(ref chapter_path) = ch.source_path { let base = chapter_path .parent() .map(|dir| src_dir.join(dir))