TagItems should now link to the blog list.
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bard"
|
name = "bard"
|
||||||
version = "0.0.14"
|
version = "0.0.15"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "Dioxus components that will display a Tavern blogging system Blog."
|
description = "Dioxus components that will display a Tavern blogging system Blog."
|
||||||
repository = "/CyberMages/tavern"
|
repository = "/CyberMages/tavern"
|
||||||
|
|||||||
@ -48,7 +48,13 @@ pub fn TagItem(tag: String, style: String) -> Element
|
|||||||
li
|
li
|
||||||
{
|
{
|
||||||
class: "tag_item",
|
class: "tag_item",
|
||||||
a { class: "{style}", "{tag}" }
|
Link
|
||||||
|
{
|
||||||
|
class: "{style}",
|
||||||
|
to: Page::Blog { tag: tag.clone() },
|
||||||
|
span { "{tag}" }
|
||||||
|
}
|
||||||
|
// a { class: "{style}", "{tag}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user