From 9f463bd41ab3cb662f28f2345f640cccc10fc967 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Mon, 30 Sep 2024 22:27:46 +0200 Subject: [PATCH] refactor --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 446929a..e3061af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,7 +90,7 @@ fn main() { .add_task(|sack| { let query = sack.get_content::("about").unwrap(); let (parsed, outline, bib) = - html::post::parse_content(query.content, &sack, query.file, None); + html::post::parse_content(query.content, &sack, query.area, None); let out_buff = html::post::as_html(query.meta, &parsed, &sack, outline, bib); vec![(query.slug.join("index.html"), out_buff)] }) @@ -100,7 +100,7 @@ fn main() { .into_iter() .map(|query| { let (parsed, outline, bib) = - html::post::parse_content(query.content, &sack, query.file, None); + html::post::parse_content(query.content, &sack, query.area, None); let out_buff = html::post::as_html(query.meta, &parsed, &sack, outline, bib); (query.slug.join("index.html"), out_buff) }) @@ -112,7 +112,7 @@ fn main() { .into_iter() .map(|query| { let (parsed, outline, bib) = - html::slideshow::parse_content(query.content, &sack, query.file, None); + html::slideshow::parse_content(query.content, &sack, query.area, None); let out_buff = html::slideshow::as_html(query.meta, &parsed, &sack, outline, bib); (query.slug.join("index.html"), out_buff) @@ -125,7 +125,7 @@ fn main() { .into_iter() .map(|query| { let (parsed, outline, bib) = - html::wiki::parse_content(query.content, &sack, query.file, None); + html::wiki::parse_content(query.content, &sack, query.area, None); let out_buff = html::wiki::as_html(query.meta, &parsed, &sack, query.slug, outline, bib); (query.slug.join("index.html"), out_buff)