From c2e65f63654b3501fd144de8ea006aea4d085738 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 11 Apr 2023 00:19:53 +0200 Subject: [PATCH] derive to content --- src/template.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/template.rs b/src/template.rs index f0307c9..d2ec996 100644 --- a/src/template.rs +++ b/src/template.rs @@ -31,12 +31,13 @@ impl FrontMatter<'_> { } } -#[derive(Default, Deserialize)] +#[derive(Default, Deserialize, Content)] pub struct FileMetadata { pub title: Option, pub link: Option, } +#[derive(Content)] pub struct Metadata { pub info: FileMetadata, pub mermaid: bool,