The Blog page should now be able to show all.
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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}" }
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ pub fn Blog(tag: String) -> Element
|
||||
{
|
||||
let mut categories: Vec<String> = vec![];
|
||||
|
||||
if !tag.is_empty()
|
||||
if !tag.is_empty() && tag != "all"
|
||||
{
|
||||
categories.push(tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user