Add rudimentary entry page, fix main frame link navigation

This commit is contained in:
2023-06-02 00:31:25 -04:00
parent 0b7acadd60
commit ea236dff4e
5 changed files with 23 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ pub async fn get(State(pool): State<PgPool>, layout: Layout) -> Result<Response>
ul {
@for entry in entries {
@let title = entry.title.unwrap_or_else(|| "Untitled".to_string());
li { (title) }
@let url = format!("/entry/{}", entry.id);
li { a href=(url) { (title) } }
}
}
}))