Skip to content

Commit b9e5eed

Browse files
lwinmoepaingclaude
andcommitted
🐛 fix: add missing OG meta tags for social media sharing
Add og:type, og:url, metadataBase, and image dimensions (width/height/alt) to fix broken social media preview cards when sharing mmswe.com. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f85ba3 commit b9e5eed

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/app/layout.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,32 @@ import { NextIntlClientProvider } from "next-intl";
1212
import { getLocale, getMessages } from "next-intl/server";
1313
import { LanguageProvider } from "@/context/LanguageContext";
1414

15+
const SITE_URL = "https://mmswe.com";
16+
const OG_IMAGE = {
17+
url: `${SITE_URL}/images/mmswe-seo.png`,
18+
width: 1536,
19+
height: 1024,
20+
alt: APP_CONFIG.title,
21+
type: "image/png",
22+
};
23+
1524
export const metadata: Metadata = {
25+
metadataBase: new URL(SITE_URL),
1626
title: APP_CONFIG.title,
17-
description:
18-
"Explore our Job Board, access insightful Tech Articles, showcase your Portfolio, and join a Community that thrives on mutual growth.",
27+
description: APP_CONFIG.description,
1928
openGraph: {
29+
type: "website",
30+
url: SITE_URL,
2031
title: APP_CONFIG.title,
2132
description: APP_CONFIG.description,
22-
images: "https://mmswe.com/images/mmswe-seo.png",
2333
siteName: APP_CONFIG.title,
34+
images: [OG_IMAGE],
2435
},
2536
twitter: {
2637
card: "summary_large_image",
2738
title: APP_CONFIG.title,
2839
description: APP_CONFIG.description,
29-
images: "https://mmswe.com/images/mmswe-seo.png",
40+
images: [OG_IMAGE],
3041
},
3142
};
3243

0 commit comments

Comments
 (0)