Adjusting page routes.
This commit is contained in:
@ -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"
|
||||||
|
|||||||
@ -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},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user