From ff226908eaf684b1a25845b51c2f68225d8ee1c4 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 16 Jan 2024 20:30:43 +0100 Subject: [PATCH] fix: separate description and preview since description allows html tags, you may end up with escaped html inside the embed preview description. add a separate config option --- src/config.rs | 3 +++ web/index.stpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index c57bf7c..6ab2a98 100644 --- a/src/config.rs +++ b/src/config.rs @@ -55,6 +55,9 @@ pub struct ConfigTemplate { #[serde_inline_default("you found my guestbook! please take a moment to sign it (:".into())] pub description: String, + #[serde_inline_default("a simple guestbook to let visitors leave a mark".into())] + pub preview: String, + #[serde_inline_default("Kilroy was here Ω".into())] pub placeholder_body: String, diff --git a/web/index.stpl b/web/index.stpl index 91da7da..0242f22 100644 --- a/web/index.stpl +++ b/web/index.stpl @@ -6,7 +6,7 @@ - +