From cbdfe627b88a46b4d3e9be985448d72a4e8538b1 Mon Sep 17 00:00:00 2001 From: lafleur Date: Wed, 11 Nov 2020 02:07:21 +0100 Subject: [PATCH] use the cwd as site title --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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