From eb858264cad6c2c6efd25a4fd29fe5522d84d5bf Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jan 2024 22:30:51 +0100 Subject: [PATCH] feat: allow customizing footer/descr with html --- src/config.rs | 3 +++ web/index.stpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 4320724..63a699d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -47,6 +47,9 @@ pub struct ConfigTemplate { #[serde_inline_default("Kilroy was here Ω".into())] pub placeholder_body: String, + #[serde_inline_default("made with <3 by alemi".into())] + pub footer: String, + #[serde(default)] pub canonical: Option, diff --git a/web/index.stpl b/web/index.stpl index a93b9c6..91da7da 100644 --- a/web/index.stpl +++ b/web/index.stpl @@ -24,7 +24,7 @@

<%= root.title %>

-

<%= root.description %>

+

<%- root.description %>

@@ -47,7 +47,7 @@
-

guestbook.rs ~ made with <3 by alemi

+

guestbook.rs ~ <%- root.footer %>