diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 2d11b18..09b7d70 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.0.15" +version = "0.0.16" 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 43d4ffc..f19acb5 100644 --- a/bard/src/components.rs +++ b/bard/src/components.rs @@ -52,7 +52,7 @@ pub fn TagItem(tag: String, style: String) -> Element { class: "{style}", to: Page::Blog { tag: tag.clone() }, - span { "{tag}" } + "{tag}" } // a { class: "{style}", "{tag}" } } diff --git a/bard/src/pages/blog.rs b/bard/src/pages/blog.rs index 1597af9..fdc383e 100644 --- a/bard/src/pages/blog.rs +++ b/bard/src/pages/blog.rs @@ -15,7 +15,7 @@ pub fn Blog(tag: String) -> Element { let mut categories: Vec = vec![]; - if !tag.is_empty() + if !tag.is_empty() && tag != "all" { categories.push(tag); }