From d646e91bad27e92eebd4c5ef71cb400dea86ca90 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Fri, 12 Sep 2025 13:57:43 -0400 Subject: [PATCH] Adding the new Tag nav and selector to the pages. --- bard/Cargo.toml | 2 +- bard/src/pages/blog.rs | 7 ++++++- bard/src/pages/post.rs | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 2bbb3d0..23c41fc 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.0.19" +version = "0.0.20" edition = "2024" description = "Dioxus components that will display a Tavern blogging system Blog." repository = "/CyberMages/tavern" diff --git a/bard/src/pages/blog.rs b/bard/src/pages/blog.rs index f642ef2..7a9e978 100644 --- a/bard/src/pages/blog.rs +++ b/bard/src/pages/blog.rs @@ -2,7 +2,7 @@ use std::collections::HashSet; use dioxus::prelude::*; -use crate::components::BlogList; +use crate::components::{BlogList, TagSelector}; use crate::page::Page; @@ -51,6 +51,11 @@ pub fn Blog(tag: String) -> Element { tags: categories } + + TagSelector + { + toggled_tags: categories + } } } } diff --git a/bard/src/pages/post.rs b/bard/src/pages/post.rs index b6531fc..698c9a0 100644 --- a/bard/src/pages/post.rs +++ b/bard/src/pages/post.rs @@ -1,6 +1,6 @@ use dioxus::prelude::*; -use crate::components::BlogPost; +use crate::components::{BlogPost, TagNav}; use crate::page::Page; @@ -35,6 +35,8 @@ pub fn Post(slug: String) -> Element { slug: url_slug } + + TagNav { } } } }