Skip to content

Commit

Permalink
twitter:title
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed Mar 16, 2023
1 parent ff7fc24 commit 6f6c27d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beta/src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export const Seo = withRouter(
<meta name="twitter:site" key="twitter:site" content="@reactjs" />
<meta name="twitter:creator" key="twitter:creator" content="@reactjs" />
{title != null && (
<meta name="twitter:title" key="twitter:title" content={title} />
<meta
name="twitter:title"
key="twitter:title"
content={isHomePage ? 'React' : title}
/>
)}
{description != null && (
<meta
Expand Down

0 comments on commit 6f6c27d

Please sign in to comment.