moves <main> from layout to individual pages

This commit is contained in:
2026-06-09 09:14:18 +01:00
parent 531c9d5a38
commit 3ecf19cb8a
4 changed files with 6 additions and 4 deletions
-4
View File
@@ -10,11 +10,7 @@ pp "${SHARE}"/components/head.upphtml
<body>
#!
pp "${SHARE}"/components/navbar.upphtml
#!
<main>
#!
pp "$1"
#!
</main>
</body>
</html>
+2
View File
@@ -8,6 +8,7 @@ pp "${SHARE}"/components/meta.upphtml
pp "${SHARE}"/components/otp-dialog.upphtml
#!
<main>
<form class=contact-form>
<h1>Contact me</h1>
<p hidden class=error></p>
@@ -94,3 +95,4 @@ pp "${SHARE}"/components/otp-dialog.upphtml
await submitOtpForm(selectors);
});
</script>
</main>
+2
View File
@@ -4,6 +4,7 @@ export DESCRIPTION="Error page for Joe Carstairs' personal website"
pp "${SHARE}"/components/meta.upphtml
#!
<main>
<section>
<h1>Got lost?</h1>
@@ -12,3 +13,4 @@ pp "${SHARE}"/components/meta.upphtml
my <a href='/'>homepage</a> instead.
</p>
</section>
</main>
+2
View File
@@ -4,6 +4,7 @@ export DESCRIPTION="Joe Carstairs' personal website"
pp "${SHARE}"/components/meta.upphtml
#!
<main>
<section class="h-card">
<div>
<img class="u-photo" src="/images/headshot.webp" height="96" width="96" />
@@ -45,3 +46,4 @@ pp "${SHARE}"/components/meta.upphtml
</p>
</div>
</section>
</main>