summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-09 09:14:18 +0100
committerJoe Carstairs <me@joeac.net>2026-06-09 09:14:18 +0100
commit3ecf19cb8aa3661cffbb1ce3e4380807612c446c (patch)
treeb9f92f8d0fd0c863b736426b30c55024b76a05d6
parent531c9d5a3806852e3a9b6d3fd1f83d1e8ab73e86 (diff)
moves <main> from layout to individual pages
-rw-r--r--http/share/l.upphtml4
-rw-r--r--http/src/contact.upphtml2
-rw-r--r--http/src/error.upphtml2
-rw-r--r--http/src/index.upphtml2
4 files changed, 6 insertions, 4 deletions
diff --git a/http/share/l.upphtml b/http/share/l.upphtml
index ea9719b..e15cb4d 100644
--- a/http/share/l.upphtml
+++ b/http/share/l.upphtml
@@ -10,11 +10,7 @@ pp "${SHARE}"/components/head.upphtml
<body>
#!
pp "${SHARE}"/components/navbar.upphtml
-#!
-<main>
-#!
pp "$1"
#!
-</main>
</body>
</html>
diff --git a/http/src/contact.upphtml b/http/src/contact.upphtml
index 770ec19..2d605a3 100644
--- a/http/src/contact.upphtml
+++ b/http/src/contact.upphtml
@@ -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>
diff --git a/http/src/error.upphtml b/http/src/error.upphtml
index 057006f..1e8ef13 100644
--- a/http/src/error.upphtml
+++ b/http/src/error.upphtml
@@ -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>
diff --git a/http/src/index.upphtml b/http/src/index.upphtml
index fec3774..51eacba 100644
--- a/http/src/index.upphtml
+++ b/http/src/index.upphtml
@@ -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>