Removed the default header for recently updated section

main
Wynd 2024-06-10 11:42:08 +03:00
parent 1ffd130472
commit 12ba842805
1 changed files with 4 additions and 3 deletions

View File

@ -75,10 +75,11 @@ impl Preprocessor for LastChanged {
let size = match ctx.config.get("output.html.recently-updated-size") {
Some(val) => match val {
toml::Value::Integer(i) => i,
_ => &5
_ => &5,
},
None => &5,
}.to_owned();
}
.to_owned();
let size = usize::try_from(size).expect("Recently Updated size is not an usize");
let mut vec: Vec<(LiteLink, NaiveDate)> = map
@ -101,7 +102,7 @@ impl Preprocessor for LastChanged {
)
})
.collect();
let text = concat_string!("## Recently Updated:\n", "<ul>", text, "</ul>");
let text = concat_string!("<ul>", text, "</ul>");
book.for_each_mut(|item: &mut BookItem| {
if let Some(Err(_)) = res {