From 417c0d01e465fedff930dce8f0a9def68ae050c1 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Mon, 8 Sep 2025 12:48:01 -0400 Subject: [PATCH] Adjusting page routes. --- bard/Cargo.toml | 2 +- bard/src/page.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 6898d2d..7ebe558 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.0.12" +version = "0.0.13" edition = "2024" description = "Dioxus components that will display a Tavern blogging system Blog." repository = "/CyberMages/tavern" diff --git a/bard/src/page.rs b/bard/src/page.rs index 1a49f5a..4f1950f 100644 --- a/bard/src/page.rs +++ b/bard/src/page.rs @@ -8,9 +8,9 @@ use crate::pages::{Blog, Post}; #[rustfmt::skip] pub enum Page { - #[route("/blog/:tag")] + #[route("/:tag")] Blog { tag: String }, - #[route("/blog/post/:slug")] + #[route("/post/:slug")] Post { slug: String}, }