From 5e818d804d5d38beff0f3754a006333752fd5082 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 22 Apr 2026 16:11:58 +0000 Subject: refactor: update schema handling and improve SEO metadata - Changed schema type from WithContext to Thing[] in Head, BaseLayout, and JsonLd components for better flexibility. - Added optional robots meta tag to Head component. - Updated JSON-LD generation in JsonLd component to include a structured payload. - Enhanced page and blog schemas to support breadcrumb and person schemas for improved SEO. - Introduced new utility schemas for website and person to streamline schema generation. - Refactored existing schemas to align with the new structure and ensure consistency across components. --- src/pages/404.astro | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/pages/404.astro') 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, + }), +]; --- - +

404

Page not found

-- cgit v1.2.3