diff --git a/src/routes/blog.rs b/src/routes/blog.rs index da2d8a5..845c9c3 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -72,7 +72,7 @@ pub async fn index_handler() -> Markup { pub async fn entry_handler(Path(entry): Path) -> Markup { if let Some((metadata, body)) = ENTRIES.get(entry.as_str()) { - text::create(Some(&metadata.title), Page::Other, &body) + text::create(Some(&metadata.title), Page::Other, body) } else { not_found::handler().await }