The Blog page should now be able to show all.

This commit is contained in:
2025-09-08 20:52:42 -04:00
parent c3ee3bef0a
commit fe87b2f195
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "bard" name = "bard"
version = "0.0.15" version = "0.0.16"
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"

View File

@ -52,7 +52,7 @@ pub fn TagItem(tag: String, style: String) -> Element
{ {
class: "{style}", class: "{style}",
to: Page::Blog { tag: tag.clone() }, to: Page::Blog { tag: tag.clone() },
span { "{tag}" } "{tag}"
} }
// a { class: "{style}", "{tag}" } // a { class: "{style}", "{tag}" }
} }

View File

@ -15,7 +15,7 @@ pub fn Blog(tag: String) -> Element
{ {
let mut categories: Vec<String> = vec![]; let mut categories: Vec<String> = vec![];
if !tag.is_empty() if !tag.is_empty() && tag != "all"
{ {
categories.push(tag); categories.push(tag);
} }