From 12ba8428056f00e35fbb6640905b64448a7b13c4 Mon Sep 17 00:00:00 2001 From: Wynd Date: Mon, 10 Jun 2024 11:42:08 +0300 Subject: [PATCH] Removed the default header for recently updated section --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9aadbc9..dd07200 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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", ""); + let text = concat_string!(""); book.for_each_mut(|item: &mut BookItem| { if let Some(Err(_)) = res {