aboutsummaryrefslogtreecommitdiff
path: root/src/config.ts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-14 22:25:16 +0300
committerValentin Popov <valentin@popov.link>2025-06-14 22:25:16 +0300
commita81117972d39df35574bbab809bb590abc874761 (patch)
tree41cb25172c7603d2ea0dc275f8d90c72d83bf5a1 /src/config.ts
parent3d0f4857465e55815809719a4a4438e8a3cd16a0 (diff)
downloadpopov.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/config.ts')
-rw-r--r--src/config.ts23
1 files changed, 21 insertions, 2 deletions
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",
},
};