Page abstraction
This commit is contained in:
@@ -16,12 +16,9 @@ impl<T: Render> Render for FarLink<'_, T> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Backlinks(
|
||||
pub &'static [(&'static str, &'static str)],
|
||||
pub &'static str,
|
||||
);
|
||||
pub struct Backlinks<'a>(pub &'a [(&'a str, &'a str)], pub &'a str);
|
||||
|
||||
impl Render for Backlinks {
|
||||
impl Render for Backlinks<'_> {
|
||||
fn render(&self) -> Markup {
|
||||
html! {
|
||||
div {
|
||||
|
||||
Reference in New Issue
Block a user