From 6efec6bd22297e84648fa556cdef06145f608e43 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Sat, 27 Sep 2025 14:22:26 -0400 Subject: [PATCH] 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. --- Cargo.lock | 2 +- bard/Cargo.toml | 2 +- bard/src/components/post.rs | 13 ++++++------- bard/src/components/tags.rs | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 69021ff..f315d5c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -224,7 +224,7 @@ dependencies = [ [[package]] name = "bard" -version = "0.3.1" +version = "0.3.2" dependencies = [ "dioxus", "tavern", diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 58887d8..0ce13aa 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -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" diff --git a/bard/src/components/post.rs b/bard/src/components/post.rs index 5161630..7848629 100644 --- a/bard/src/components/post.rs +++ b/bard/src/components/post.rs @@ -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() { diff --git a/bard/src/components/tags.rs b/bard/src/components/tags.rs index 5b19274..715e8fa 100644 --- a/bard/src/components/tags.rs +++ b/bard/src/components/tags.rs @@ -22,7 +22,7 @@ pub fn TagItem(tag: String, style: Option) -> Element Link { - class: "{tag_style}", + class: "{tag_style} tag_{tag}", to: Page::Blog { tag: tag.clone() },