Generate backlinks
All checks were successful
CI / Check typos (push) Successful in 8s
CI / Check links (push) Successful in 33s
CI / Clippy (push) Successful in 1m1s
CI / Build and test (push) Successful in 1m8s
CI / Build container (push) Successful in 45s
CI / Deploy on waypoint (push) Successful in 45s

This commit is contained in:
2025-11-06 08:56:58 -08:00
parent 5554aafc44
commit 4091d8b486
12 changed files with 83 additions and 56 deletions

View File

@@ -15,20 +15,3 @@ impl<T: Render> Render for FarLink<'_, T> {
)
}
}
pub struct Backlinks<'a>(pub &'a [(&'a str, &'a str)], pub &'a str);
impl Render for Backlinks<'_> {
fn render(&self) -> Markup {
html! {
div {
@for (url, text) in self.0 {
a href=(url) style="padding-left:5pt;padding-right:5pt;" { (text) }
"/"
}
span style="color:var(--metaColor);padding-left:5pt;padding-right:5pt;" { (self.1) }
}
}
}
}