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.astro20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/pages/404.astro b/src/pages/404.astro
index 3ec9feb..e76215e 100644
--- a/src/pages/404.astro
+++ b/src/pages/404.astro
@@ -8,16 +8,20 @@ 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,
-});
+const siteUrl = new URL("/", Astro.site).toString();
+
+const schema = [
+ pageSchema({
+ siteUrl,
+ page: "/404",
+ title,
+ description,
+ lang,
+ }),
+];
---
-<Layout title={title} description={description} preview={preview} lang={lang} schema={schema}>
+<Layout title={title} description={description} preview={preview} lang={lang} robots="noindex, follow" schema={schema}>
<div style={{ "text-align": "center" }}>
<h1>404</h1>
<p><strong>Page not found</strong></p>