From 32201b6dfa7f329312040ca3cd8221004ce4bb37 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 25 Feb 2026 23:20:45 +0100 Subject: [PATCH] Improve OG --- web/pages/api/og/profile.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/web/pages/api/og/profile.tsx b/web/pages/api/og/profile.tsx index d92c76e5..7b84cffc 100644 --- a/web/pages/api/og/profile.tsx +++ b/web/pages/api/og/profile.tsx @@ -28,9 +28,9 @@ function OgProfile(props: ogProps) { typeof interests === 'string' ? (interests ? interests.split(',') : []) : (interests ?? []) const keywordsList = typeof keywords === 'string' ? (keywords ? keywords.split(',') : []) : (keywords ?? []) - const allTags = [...keywordsList].filter(Boolean) + const allTags = [...keywordsList].filter(Boolean).slice(0, 8) - const maxChars = 250 + const maxChars = 200 if (headline && headline.length > maxChars) { headline = headline.slice(0, maxChars) + '...' } @@ -49,14 +49,11 @@ function OgProfile(props: ogProps) { backgroundColor: '#f5f5f5', }} > - {/* Top Section: Name + Headline */} - - {/* Bottom Section: Two Columns */} -
- {/* Left Column: City + Tags */} +
+ {/* Left Column: Text */}
{/* Right Column: Avatar */} -
+