chore: clean up docs with changes to templates
This commit is contained in:
1 parent
f075a519cc
commit
a252774226
18 files changed
+34
-399
No files matched your search
@@ -36,7 +36,9 @@ fn BlogList(cx: Scope) -> Element {
|
||||
}
|
||||
|
||||
fn BlogPost(cx: Scope) -> Element {
|
||||
let id = use_route(cx).segment("id")?;
|
||||
let Some(id) = use_route(cx).segment("id") else {
|
||||
return cx.render(rsx! { div { "No blog post id" } })
|
||||
};
|
||||
|
||||
log::trace!("rendering blog post {}", id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user