Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
fix: add missing image open graph tags (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored Oct 17, 2018
1 parent 7b1a392 commit 34686cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">

<meta property="og:type" content="profile" />
<meta property="og:url" content="%PUBLIC_URL%" />
<meta property="og:title" content="%REACT_APP_GITHUB_USERNAME%" />
<meta property="og:image" content="https://github.com/%REACT_APP_GITHUB_USERNAME%.png" />
<meta property="profile:username" content="%REACT_APP_GITHUB_USERNAME%" />
<meta property="og:type" content="profile">
<meta property="og:url" content="%PUBLIC_URL%">
<meta property="og:title" content="%REACT_APP_GITHUB_USERNAME%">
<meta property="og:image" content="https://github.com/%REACT_APP_GITHUB_USERNAME%.png?size=240">
<meta property="og:image:width" content="240">
<meta property="og:image:height" content="240">
<meta property="og:image:type" content="image/png">
<meta property="profile:username" content="%REACT_APP_GITHUB_USERNAME%">

<!--
manifest.json provides metadata used when your web app is added to the
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/user/user-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function UserMoleculeMeta(props) {
<meta name="keywords" content={keywords.join(', ')} />
<meta property="og:title" content={title} />
<meta property="og:description" content={props.description} />
<meta property="og:image" content={props.avatarUrl} />
<meta property="og:image" content={`${props.avatarUrl}?size=240`} />
<meta property="profile:username" content={props.username} />
<meta property="profile:first_name" content={nameFirst} />
<meta property="profile:last_name" content={nameLast} />
Expand Down

0 comments on commit 34686cd

Please sign in to comment.