use crate::layout::{DynScaffold, Scaffold}; use rocket::{get, response::Redirect}; #[get("/blog")] pub fn r_blog() -> Redirect { Redirect::to(rocket::uri!(r_blog_index())) } #[get("/blog/index")] pub fn r_blog_index() -> DynScaffold<'static> { Scaffold { title: "blog index".to_string(), content: markup::new! {}, } }