Adjusting page routes.

This commit is contained in:
2025-09-08 12:48:01 -04:00
parent 9db5a5ea3d
commit 417c0d01e4
2 changed files with 3 additions and 3 deletions

View File

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

@ -8,9 +8,9 @@ use crate::pages::{Blog, Post};
#[rustfmt::skip] #[rustfmt::skip]
pub enum Page pub enum Page
{ {
#[route("/blog/:tag")] #[route("/:tag")]
Blog { tag: String }, Blog { tag: String },
#[route("/blog/post/:slug")] #[route("/post/:slug")]
Post { slug: String}, Post { slug: String},
} }