derive to content
This commit is contained in:
parent
dfa62c8e07
commit
c2e65f6365
1 changed files with 2 additions and 1 deletions
|
@ -31,12 +31,13 @@ impl FrontMatter<'_> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Deserialize)]
|
#[derive(Default, Deserialize, Content)]
|
||||||
pub struct FileMetadata {
|
pub struct FileMetadata {
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
pub link: Option<String>,
|
pub link: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Content)]
|
||||||
pub struct Metadata {
|
pub struct Metadata {
|
||||||
pub info: FileMetadata,
|
pub info: FileMetadata,
|
||||||
pub mermaid: bool,
|
pub mermaid: bool,
|
||||||
|
|
Loading…
Reference in a new issue