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:
2025-09-27 14:22:26 -04:00
parent 3f4440ec2f
commit 6efec6bd22
4 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "bard"
version = "0.3.1"
version = "0.3.2"
edition = "2024"
description = "Dioxus components that will display a Tavern blogging system Blog."
repository = "/CyberMages/tavern"

View File

@ -150,17 +150,16 @@ pub fn TagNav() -> Element
if let Some(Ok(categories)) = &*tags.read()
{
for tag in categories
TagList
{
Link
for tag in categories
{
TagItem
{
class: "tag_item tag_{tag}",
to: Page::Blog { tag: tag.clone() },
"{tag}"
tag: tag.clone()
}
}
}
}
else if let Some(Err(e)) = &*tags.read()
{

View File

@ -22,7 +22,7 @@ pub fn TagItem(tag: String, style: Option<String>) -> Element
Link
{
class: "{tag_style}",
class: "{tag_style} tag_{tag}",
to: Page::Blog { tag: tag.clone() },