Skip to content

Remove duplicate twitter meta properties which fallback to Opengraph #595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions components/PageHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ export const PageHead: React.FC<
<>
<meta name='description' content={description} />
<meta property='og:description' content={description} />
<meta name='twitter:description' content={description} />
</>
)}

{socialImageUrl ? (
<>
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:image' content={socialImageUrl} />
<meta property='og:image' content={socialImageUrl} />
</>
) : (
Expand All @@ -74,7 +72,6 @@ export const PageHead: React.FC<
<>
<link rel='canonical' href={url} />
<meta property='og:url' content={url} />
<meta property='twitter:url' content={url} />
</>
)}

Expand All @@ -86,7 +83,6 @@ export const PageHead: React.FC<
/>

<meta property='og:title' content={title} />
<meta name='twitter:title' content={title} />
<title>{title}</title>
</Head>
)
Expand Down