Add static file server, CSS styles for home
Also fix the livereloading.
This commit is contained in:
@@ -10,7 +10,7 @@ use crate::partials::layout::Layout;
|
||||
pub async fn get(State(pool): State<PgPool>, layout: Layout) -> Result<Response> {
|
||||
let entries = get_entries(&pool, GetEntriesOptions::default()).await?;
|
||||
Ok(layout.render(html! {
|
||||
ul {
|
||||
ul class="entries" {
|
||||
@for entry in entries {
|
||||
@let title = entry.title.unwrap_or_else(|| "Untitled".to_string());
|
||||
@let url = format!("/entry/{}", entry.id);
|
||||
|
||||
Reference in New Issue
Block a user