From c3ee3bef0ad61c22a969c5e384bdb2807b8c0e59 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Mon, 8 Sep 2025 18:48:25 -0400 Subject: [PATCH] TagItems should now link to the blog list. --- bard/Cargo.toml | 2 +- bard/src/components.rs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 0fdca86..2d11b18 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.0.14" +version = "0.0.15" edition = "2024" description = "Dioxus components that will display a Tavern blogging system Blog." repository = "/CyberMages/tavern" diff --git a/bard/src/components.rs b/bard/src/components.rs index 6d294b8..43d4ffc 100644 --- a/bard/src/components.rs +++ b/bard/src/components.rs @@ -48,7 +48,13 @@ pub fn TagItem(tag: String, style: String) -> Element li { class: "tag_item", - a { class: "{style}", "{tag}" } + Link + { + class: "{style}", + to: Page::Blog { tag: tag.clone() }, + span { "{tag}" } + } +// a { class: "{style}", "{tag}" } } } }