diff options
Diffstat (limited to 'src/bin/subplot.rs')
-rw-r--r-- | src/bin/subplot.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs index a85ad62..8ede58d 100644 --- a/src/bin/subplot.rs +++ b/src/bin/subplot.rs @@ -278,7 +278,8 @@ impl Docgen { } else if let Some(date) = doc.meta().date() { date.to_string() } else { - Self::mtime_formatted(Self::mtime(doc.meta().markdown_filename())?) + let filename = doc.meta().basedir().join(doc.meta().markdown_filename()); + Self::mtime_formatted(Self::mtime(&filename)?) }; pandoc.add_option(pandoc::PandocOption::Meta("date".to_string(), Some(date))); pandoc.add_option(pandoc::PandocOption::TableOfContents); |