diff --git a/src/main.rs b/src/main.rs index 91bc321..8d85714 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn list_contents() -> io::Result> { #[derive(serde::Serialize)] struct IndexContext { - name: &'static str, + title: String, items: Vec } @@ -63,8 +63,11 @@ fn show(content: Content) -> Template { #[get("/")] fn index() -> io::Result