aboutsummaryrefslogtreecommitdiff
path: root/src/post
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-09-20 21:05:44 -0400
committerXe Iaso <me@christine.website>2022-09-20 21:05:44 -0400
commit67005bc59dd918eadcbd9c7c9285aed0c3422292 (patch)
treede54bbad6aa651d4e56517af56a6773f02766fcf /src/post
parent839c44e535d03f8ae747139acd27109e897c76e4 (diff)
downloadxesite-67005bc59dd918eadcbd9c7c9285aed0c3422292.tar.xz
xesite-67005bc59dd918eadcbd9c7c9285aed0c3422292.zip
move markdown and templates into a dedicated crate
This does not move the ructe templates around, only the newer Maud ones. The only template I can't move easily is the salary history one, but I should get rid of that anyways.
Diffstat (limited to 'src/post')
-rw-r--r--src/post/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post/mod.rs b/src/post/mod.rs
index 5c2ed2d..263471d 100644
--- a/src/post/mod.rs
+++ b/src/post/mod.rs
@@ -103,7 +103,7 @@ async fn read_post(
let date = NaiveDate::parse_from_str(&front_matter.clone().date, "%Y-%m-%d")
.map_err(|why| eyre!("error parsing date in {:?}: {}", fname, why))?;
let link = format!("{}/{}", dir, fname.file_stem().unwrap().to_str().unwrap());
- let body_html = crate::app::markdown::render(cfg.clone(), &body)
+ let body_html = xesite_markdown::render(&body)
.wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?;
let date: DateTime<FixedOffset> =
DateTime::<Utc>::from_utc(NaiveDateTime::new(date, NaiveTime::from_hms(0, 0, 0)), Utc)