summaryrefslogtreecommitdiff
path: root/src/bin/subplot.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2022-09-08 18:27:49 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2022-09-08 18:27:49 +0000
commit4e54fa9ea0485aac2d750c5eb4fa9ead83ecf365 (patch)
treea7c22c35da5811f19fa02772ecc6498d87d63030 /src/bin/subplot.rs
parentc230684f3bab80154d5224d4f2f71eafd00fd100 (diff)
parent765b2e1d4d94b2274de28d4efd24bfe77e8d93ac (diff)
downloadsubplot-4e54fa9ea0485aac2d750c5eb4fa9ead83ecf365.tar.gz
Merge branch 'liw/yamlfile' into 'main'
feat! read document metadata from a YAML file Closes #283 See merge request subplot/subplot!287
Diffstat (limited to 'src/bin/subplot.rs')
-rw-r--r--src/bin/subplot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs
index b618ac9..907e616 100644
--- a/src/bin/subplot.rs
+++ b/src/bin/subplot.rs
@@ -278,7 +278,7 @@ impl Docgen {
} else if let Some(date) = doc.meta().date() {
date.to_string()
} else {
- Self::mtime_formatted(Self::mtime(&self.input)?)
+ Self::mtime_formatted(Self::mtime(doc.meta().markdown_filename())?)
};
pandoc.add_option(pandoc::PandocOption::Meta("date".to_string(), Some(date)));
pandoc.add_option(pandoc::PandocOption::TableOfContents);