diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-09-08 18:27:49 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-09-08 18:27:49 +0000 |
commit | 4e54fa9ea0485aac2d750c5eb4fa9ead83ecf365 (patch) | |
tree | a7c22c35da5811f19fa02772ecc6498d87d63030 /src/bin/subplot.rs | |
parent | c230684f3bab80154d5224d4f2f71eafd00fd100 (diff) | |
parent | 765b2e1d4d94b2274de28d4efd24bfe77e8d93ac (diff) | |
download | subplot-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.rs | 2 |
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); |