replace data by content

This commit is contained in:
Mylloon 2023-04-11 02:13:04 +02:00
parent dfcb6f41f9
commit 2b3e7491a2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -57,7 +57,7 @@ pub struct Metadata {
#[derive(Content)] #[derive(Content)]
pub struct File { pub struct File {
pub metadata: Metadata, pub metadata: Metadata,
pub data: String, pub content: String,
} }
pub fn read_md(filename: &str) -> File { pub fn read_md(filename: &str) -> File {
@ -118,6 +118,6 @@ pub fn read_md(filename: &str) -> File {
mermaid: presence_mermaid, mermaid: presence_mermaid,
syntax_highlight: presence_code, syntax_highlight: presence_code,
}, },
data: html, content: html,
} }
} }