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/layouts/BaseLayout.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/layouts/BaseLayout.astro')
-rw-r--r-- | src/layouts/BaseLayout.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 216287e..ed3baeb 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -7,16 +7,17 @@ import "../scss/global.scss"; type Props = { readonly description: string; - readonly title: string; readonly lang: string; + readonly preview: string; readonly schema: WithContext<Thing>; + readonly title: string; }; -const { title, description, lang, schema } = Astro.props; +const { description, lang, preview, schema, title } = Astro.props; --- <html lang={lang}> - <Head title={title} description={description} schema={schema} /> + <Head title={title} description={description} preview={preview} schema={schema} /> <body> <main> |