feat: allow customizing footer/descr with html

This commit is contained in:
əlemi 2024-01-03 22:30:51 +01:00
parent 5d83cf39b9
commit eb858264ca
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 5 additions and 2 deletions

View file

@ -47,6 +47,9 @@ pub struct ConfigTemplate {
#[serde_inline_default("Kilroy was here Ω".into())] #[serde_inline_default("Kilroy was here Ω".into())]
pub placeholder_body: String, pub placeholder_body: String,
#[serde_inline_default("made with &lt;3 by <a href=\"https://alemi.dev/\">alemi</a>".into())]
pub footer: String,
#[serde(default)] #[serde(default)]
pub canonical: Option<String>, pub canonical: Option<String>,

View file

@ -24,7 +24,7 @@
<div class="center"> <div class="center">
<h1><%= root.title %></h1> <h1><%= root.title %></h1>
<img src="<%= root.logo %>" class="round-cover" title="guestbook cover"> <img src="<%= root.logo %>" class="round-cover" title="guestbook cover">
<p><%= root.description %></p> <p><%- root.description %></p>
<div> <div>
<form action="/api" method="post"> <form action="/api" method="post">
<div class="full-width"> <div class="full-width">
@ -47,7 +47,7 @@
<td colspan="2"><hr></td> <td colspan="2"><hr></td>
</tr> </tr>
</table> </table>
<p class="tiny" style="margin-top: 5em"><b>guestbook.rs</b> ~ made with &lt;3 by <a href="mailto:me@alemi.dev">alemi</a></p> <p class="tiny" style="margin-top: 5em"><b>guestbook.rs</b> ~ <%- root.footer %></p>
</div> </div>
<script type="module" src="/infiniscroll.js"></script> <script type="module" src="/infiniscroll.js"></script>
<script type="module" language="javascript"> <script type="module" language="javascript">