Adding some routing.

Moving more of the Blog pieces into the Blog library.
This commit is contained in:
2025-09-08 10:01:02 -04:00
parent 72e35cb6dc
commit 9db5a5ea3d
8 changed files with 126 additions and 26 deletions

16
bard/src/page.rs Normal file
View File

@ -0,0 +1,16 @@
use dioxus::prelude::*;
use crate::pages::{Blog, Post};
#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
pub enum Page
{
#[route("/blog/:tag")]
Blog { tag: String },
#[route("/blog/post/:slug")]
Post { slug: String},
}