derive to content
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
ci/woodpecker/pr/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-11 00:19:53 +02:00
parent dfa62c8e07
commit c2e65f6365
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -31,12 +31,13 @@ impl FrontMatter<'_> {
}
}
#[derive(Default, Deserialize)]
#[derive(Default, Deserialize, Content)]
pub struct FileMetadata {
pub title: Option<String>,
pub link: Option<String>,
}
#[derive(Content)]
pub struct Metadata {
pub info: FileMetadata,
pub mermaid: bool,