diff options
author | Valentin Popov <valentin@popov.link> | 2025-06-14 22:25:16 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2025-06-14 22:25:16 +0300 |
commit | a81117972d39df35574bbab809bb590abc874761 (patch) | |
tree | 41cb25172c7603d2ea0dc275f8d90c72d83bf5a1 /src/pages/404.astro | |
parent | 3d0f4857465e55815809719a4a4438e8a3cd16a0 (diff) | |
download | popov.link-a81117972d39df35574bbab809bb590abc874761.tar.xz popov.link-a81117972d39df35574bbab809bb590abc874761.zip |
feat: implement Open Graph image generation and enhance configuration
- Added ogImages integration to generate Open Graph images for blog posts.
- Updated configuration to include Open Graph settings and default preview image.
- Refactored Head component to utilize new preview property for Open Graph meta tags.
- Enhanced blog post schema to include preview image for structured data representation.
- Introduced utility functions for creating Open Graph images with dynamic content.
Diffstat (limited to 'src/pages/404.astro')
-rw-r--r-- | src/pages/404.astro | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pages/404.astro b/src/pages/404.astro index cb3fca1..3ec9feb 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,9 +1,11 @@ --- +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({ @@ -15,7 +17,7 @@ const schema = pageSchema({ }); --- -<Layout title={title} description={description} lang={lang} schema={schema}> +<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> |