From a81117972d39df35574bbab809bb590abc874761 Mon Sep 17 00:00:00 2001
From: Valentin Popov
Date: Sat, 14 Jun 2025 19:25:16 +0000
Subject: 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.
---
src/layouts/BaseLayout.astro | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'src/layouts/BaseLayout.astro')
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;
+ readonly title: string;
};
-const { title, description, lang, schema } = Astro.props;
+const { description, lang, preview, schema, title } = Astro.props;
---
-
+
--
cgit v1.2.3