mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-11-10 02:39:18 +01:00
feat: allow customizing footer/descr with html
This commit is contained in:
parent
5d83cf39b9
commit
eb858264ca
2 changed files with 5 additions and 2 deletions
|
@ -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 <a href=\"https://alemi.dev/\">alemi</a>".into())]
|
||||
pub footer: String,
|
||||
|
||||
#[serde(default)]
|
||||
pub canonical: Option<String>,
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<div class="center">
|
||||
<h1><%= root.title %></h1>
|
||||
<img src="<%= root.logo %>" class="round-cover" title="guestbook cover">
|
||||
<p><%= root.description %></p>
|
||||
<p><%- root.description %></p>
|
||||
<div>
|
||||
<form action="/api" method="post">
|
||||
<div class="full-width">
|
||||
|
@ -47,7 +47,7 @@
|
|||
<td colspan="2"><hr></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="tiny" style="margin-top: 5em"><b>guestbook.rs</b> ~ made with <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>
|
||||
<script type="module" src="/infiniscroll.js"></script>
|
||||
<script type="module" language="javascript">
|
||||
|
|
Loading…
Reference in a new issue