aboutsummaryrefslogtreecommitdiff
path: root/src/pages/404.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/404.astro')
-rw-r--r--src/pages/404.astro23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/pages/404.astro b/src/pages/404.astro
index e140464..3ec9feb 100644
--- a/src/pages/404.astro
+++ b/src/pages/404.astro
@@ -1,17 +1,30 @@
---
+import { config } from "../config";
import Layout from "../layouts/BaseLayout.astro";
+import pageSchema from "../utils/schemas/pageSchema";
+
+const title = "404 — Page Not Found | Valentin Popov";
+const description = "The page you're looking for doesn't exist!";
+const preview = config.og.defaultPreview;
+const lang = "en";
+
+const schema = pageSchema({
+ siteUrl: new URL("/", Astro.site).toString(),
+ page: "/404",
+ title,
+ description,
+ lang,
+});
---
-<Layout>
- <div style="text-align:center;">
+<Layout title={title} description={description} preview={preview} lang={lang} schema={schema}>
+ <div style={{ "text-align": "center" }}>
<h1>404</h1>
<p><strong>Page not found</strong></p>
<p>
<small>
If you see this message, please
- <a href=`mailto:valentin@popov.link?subject=${encodeURIComponent('I found a broken page')}`>
- let me know
- </a>
+ <a href=`mailto:valentin@popov.link?subject=${encodeURIComponent('I found a broken page')}`>let me know</a>
</small>
</p>
</div>