Skip to content

Commit

Permalink
fix og properties
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Feb 8, 2025
1 parent 7926b2b commit aeffa3b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/head/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ export const CommunityHead: React.FC<IProps> = (props) => {
{keywordStr && <meta name="keyword" content={keywordStr} />}

{/* 'Open Graph protocol' enables rich sharing info on Facebook */}
<meta name="og:title" content={fullTitle} />
<meta name="og:description" content={description} />
<meta name="og:type" content={props.isArticle ? 'article' : 'website'} />
<meta name="og:image" content={getFaviconsPath('/android-chrome-512x512.png')} />
<meta property="og:title" content={fullTitle} />
<meta property="og:description" content={description} />
<meta property="og:type" content={props.isArticle ? 'article' : 'website'} />
<meta property="og:image" content={getFaviconsPath('/android-chrome-512x512.png')} />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />

{/* for sharing to twitter */}
<meta name="twitter:title" content={fullTitle} />
Expand Down

0 comments on commit aeffa3b

Please sign in to comment.