Skip to content

Commit

Permalink
fix: open-graph and twitter preview
Browse files Browse the repository at this point in the history
  • Loading branch information
LennardZuendorf committed Jan 17, 2024
1 parent bf4a729 commit 5289ff6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,23 @@ export default function RootLayout({
<meta property="og:url" content={siteMetadata.siteUrl} />
<meta property="og:type" content={"website"} />
<meta property="og:site_name" content={siteMetadata.title} />
<meta property="og:description" content={siteMetadata.description} />
<meta property="og:title" content={siteMetadata.title} />
<meta property="og:description" content={siteMetadata.description} />
<meta
property="og:image"
content={siteMetadata.socialBanner}
key={siteMetadata.title}
/>
<meta property="twitter:title" content={siteMetadata.title} />
<meta
property="twitter:description"
content={siteMetadata.description}
/>
<meta
property="twitter:image"
content={siteMetadata.socialBanner}
key={siteMetadata.title}
/>
</head>
<body
className={cn(
Expand Down
6 changes: 3 additions & 3 deletions data/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const siteMetadata = {
language: "en-us",
theme: "system",
siteUrl: "https://zuendorf.me",
siteLogo: "/logo.png",
image: "/avatar.png",
socialBanner: "/opengraph-image.png",
siteLogo: "/img/logo.png",
image: "/img/avatar.png",
socialBanner: "/img/opengraph-image.png",
locale: "en-de",
};

0 comments on commit 5289ff6

Please sign in to comment.