diff options
| author | Christine Dodrill <me@christine.website> | 2021-02-15 16:33:14 -0500 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2021-02-15 16:33:14 -0500 |
| commit | dd5b0b12ece885659d395bb493aa76240305bf08 (patch) | |
| tree | 574bd4e16d18dcc5410a24ea8854e9e86fbcd876 /src | |
| parent | b7c2687ca89d6b59dfc7587851728f422dadf1d4 (diff) | |
| download | xesite-dd5b0b12ece885659d395bb493aa76240305bf08.tar.xz xesite-dd5b0b12ece885659d395bb493aa76240305bf08.zip | |
post: remove body field, it was not used
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'src')
| -rw-r--r-- | src/post/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/post/mod.rs b/src/post/mod.rs index 599d9a8..edbb89c 100644 --- a/src/post/mod.rs +++ b/src/post/mod.rs @@ -10,7 +10,6 @@ pub mod frontmatter; pub struct Post { pub front_matter: frontmatter::Data, pub link: String, - pub body: String, pub body_html: String, pub date: DateTime<FixedOffset>, pub mentions: Vec<mi::WebMention>, @@ -83,7 +82,6 @@ async fn read_post(dir: &str, fname: PathBuf) -> Result<Post> { let link = format!("{}/{}", dir, fname.file_stem().unwrap().to_str().unwrap()); let body_html = crate::app::markdown::render(&body) .wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?; - let body = body.to_string(); let date: DateTime<FixedOffset> = DateTime::<Utc>::from_utc(NaiveDateTime::new(date, NaiveTime::from_hms(0, 0, 0)), Utc) .with_timezone(&Utc) @@ -101,7 +99,6 @@ async fn read_post(dir: &str, fname: PathBuf) -> Result<Post> { Ok(Post { front_matter, link, - body, body_html, date, mentions, |
