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/config.ts | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'src/config.ts') diff --git a/src/config.ts b/src/config.ts index a1b0c15..d0c98ea 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,10 +1,29 @@ export const config = { author: { name: "Valentin Popov", + email: "valentin@popov.link", url: "https://popov.link/", sameAs: ["https://www.linkedin.com/in/valentineus/", "https://github.com/valentineus"], }, - posts: { - defaultImage: "/images/photo.png", + + // Open Graph + og: { + color: { + bg: "#181818", + bgCode: "#3b3d42", + blossom: "#6da13f", + text: "#dee2e6", + }, + defaultPreview: "/images/photo.png", + dimensions: { + height: 630, + width: 1200, + }, + fonts: { + bold: "./src/assets/JetBrainsMono/JetBrainsMono-Bold.ttf", + regular: "./src/assets/JetBrainsMono/JetBrainsMono-Regular.ttf", + }, + photo: "./public/images/photo.png", + website: "popov.link", }, }; -- cgit v1.2.3