TagList and TagItem are now used in the post nav.
The TagItem is now used properly in the post nav area. Only the ToggleTags are different now. Bumped the patch version.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -224,7 +224,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bard"
|
name = "bard"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dioxus",
|
"dioxus",
|
||||||
"tavern",
|
"tavern",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bard"
|
name = "bard"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
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"
|
||||||
|
|||||||
@ -149,16 +149,15 @@ pub fn TagNav() -> Element
|
|||||||
legend { "Category Filter" }
|
legend { "Category Filter" }
|
||||||
|
|
||||||
if let Some(Ok(categories)) = &*tags.read()
|
if let Some(Ok(categories)) = &*tags.read()
|
||||||
|
{
|
||||||
|
TagList
|
||||||
{
|
{
|
||||||
for tag in categories
|
for tag in categories
|
||||||
{
|
{
|
||||||
Link
|
TagItem
|
||||||
{
|
{
|
||||||
class: "tag_item tag_{tag}",
|
tag: tag.clone()
|
||||||
|
}
|
||||||
to: Page::Blog { tag: tag.clone() },
|
|
||||||
|
|
||||||
"{tag}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ pub fn TagItem(tag: String, style: Option<String>) -> Element
|
|||||||
|
|
||||||
Link
|
Link
|
||||||
{
|
{
|
||||||
class: "{tag_style}",
|
class: "{tag_style} tag_{tag}",
|
||||||
|
|
||||||
to: Page::Blog { tag: tag.clone() },
|
to: Page::Blog { tag: tag.clone() },
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user