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
This commit is contained in:
əlemi 2024-01-16 20:30:43 +01:00
parent 189226f841
commit ff226908ea
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:type" content="website">
<meta property="og:title" content="<%= root.title %>">
<meta property="og:description" content="<%= root.description %>">
<meta property="og:description" content="<%= root.preview %>">
<style>
:root {
--bg-primary: <%= root.palette.bg_main %>;