Skip to content

Commit

Permalink
Fix Twitter( X.com ) card previews not displaying correctly when shar…
Browse files Browse the repository at this point in the history
…ing links (#1103)
  • Loading branch information
MichaelMoyles authored Oct 11, 2024
1 parent fa444a4 commit 9f567e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(app)/articles/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
openGraph: {
description: post.excerpt,
type: "article",
images: [`/api/og?title=${encodeURIComponent(post.title)}`],
images: [`/og?title=${encodeURIComponent(post.title)}`],
siteName: "Codú",
},
twitter: {
description: post.excerpt,
images: [`/api/og?title=${encodeURIComponent(post.title)}`],
images: [`/og?title=${encodeURIComponent(post.title)}`],
},
alternates: {
canonical: post.canonicalUrl,
Expand Down
File renamed without changes.

0 comments on commit 9f567e9

Please sign in to comment.