replace pre with div.page-container, document template

This commit is contained in:
Lewis Wynne 2026-04-09 17:34:40 +01:00
parent 232a1d4526
commit 250dc02407
3 changed files with 54 additions and 11 deletions

View file

@ -8,8 +8,7 @@ pub const DEFAULT_TEMPLATE: &str = r#"<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{title}}</title>
<style>
pre {
font: unset;
.page-container {
max-width: 70ch;
margin: 0 auto;
padding: 1rem;
@ -20,7 +19,7 @@ pub const DEFAULT_TEMPLATE: &str = r#"<!DOCTYPE html>
{{style}}
</head>
<body>
<pre>
<div class="page-container">
{{title}}
guestbook
@ -31,7 +30,7 @@ guestbook
entries
=======
{{entries}}
</pre>
</div>
</body>
</html>
"#;