Ondřej Hruška 5 years ago
parent e79bc05a1a
commit 6aa0a139a3
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      src/bread.rs

@ -171,11 +171,11 @@ impl Bread {
)
.replace("{heading}", &date)
.replace("{prev}", &(match prev {
Some(b) => format!(r##"<a class="#prev" href="{}" title="{}">&lt;</a>"##, b.url, b.label),
Some(b) => format!(r#"<a class="prev" href="{}" title="{}">&lt;</a>"#, b.url, b.label),
None => "".to_string()
}))
.replace("{next}", &(match next {
Some(b) => format!(r##"<a class="#next" href="{}" title="{}">&gt;</a>"##, b.url, b.label),
Some(b) => format!(r#"<a class="next" href="{}" title="{}">&gt;</a>"#, b.url, b.label),
None => "".to_string()
}))
.replace("{note}", &note_html);

Loading…
Cancel
Save