refactor
This commit is contained in:
parent
062e5e105a
commit
9f463bd41a
|
@ -90,7 +90,7 @@ fn main() {
|
||||||
.add_task(|sack| {
|
.add_task(|sack| {
|
||||||
let query = sack.get_content::<Post>("about").unwrap();
|
let query = sack.get_content::<Post>("about").unwrap();
|
||||||
let (parsed, outline, bib) =
|
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);
|
let out_buff = html::post::as_html(query.meta, &parsed, &sack, outline, bib);
|
||||||
vec![(query.slug.join("index.html"), out_buff)]
|
vec![(query.slug.join("index.html"), out_buff)]
|
||||||
})
|
})
|
||||||
|
@ -100,7 +100,7 @@ fn main() {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|query| {
|
.map(|query| {
|
||||||
let (parsed, outline, bib) =
|
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);
|
let out_buff = html::post::as_html(query.meta, &parsed, &sack, outline, bib);
|
||||||
(query.slug.join("index.html"), out_buff)
|
(query.slug.join("index.html"), out_buff)
|
||||||
})
|
})
|
||||||
|
@ -112,7 +112,7 @@ fn main() {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|query| {
|
.map(|query| {
|
||||||
let (parsed, outline, bib) =
|
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 =
|
let out_buff =
|
||||||
html::slideshow::as_html(query.meta, &parsed, &sack, outline, bib);
|
html::slideshow::as_html(query.meta, &parsed, &sack, outline, bib);
|
||||||
(query.slug.join("index.html"), out_buff)
|
(query.slug.join("index.html"), out_buff)
|
||||||
|
@ -125,7 +125,7 @@ fn main() {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|query| {
|
.map(|query| {
|
||||||
let (parsed, outline, bib) =
|
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 =
|
let out_buff =
|
||||||
html::wiki::as_html(query.meta, &parsed, &sack, query.slug, outline, bib);
|
html::wiki::as_html(query.meta, &parsed, &sack, query.slug, outline, bib);
|
||||||
(query.slug.join("index.html"), out_buff)
|
(query.slug.join("index.html"), out_buff)
|
||||||
|
|
Loading…
Reference in a new issue