Removed the default header for recently updated section
parent
1ffd130472
commit
12ba842805
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue