Handle titles containing links

This commit is contained in:
clerie 2025-01-05 15:17:00 +01:00
parent a2f1e29c36
commit ba8dc04455

View File

@ -89,7 +89,7 @@ fn main() -> Result<()> {
out.push_str("<ul>\n");
for item in items {
out.push_str(&format!("<li><a href=\"{}\">{}</a> {}</li>\n", item.link, item.title, match item.time{
out.push_str(&format!("<li><a href=\"{}\">[l]</a> {} {}</li>\n", item.link, item.title, match item.time{
Some(time) => format!("({})", time),
None => "".to_string(),
}));