Skip to content

Commit

Permalink
showcase metatag images size fix [gatsbyjs#14469]
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithvijayan committed Jun 5, 2019
1 parent a20afb1 commit 2669dfa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions www/src/components/showcase-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const ShowcaseDetails = ({ parent, data, isModal, categories }) => (
}
childScreenshot {
screenshotFile {
publicURL
childImageSharp {
resize(width: 200, height: 200) {
src
Expand Down Expand Up @@ -255,15 +256,13 @@ const ShowcaseDetails = ({ parent, data, isModal, categories }) => (
<meta
property="og:image"
content={`https://www.gatsbyjs.org${
data.sitesYaml.childScreenshot.screenshotFile
.childImageSharp.resize.src
data.sitesYaml.childScreenshot.screenshotFile.publicURL
}`}
/>
<meta
name="twitter:image"
content={`https://www.gatsbyjs.org${
data.sitesYaml.childScreenshot.screenshotFile
.childImageSharp.resize.src
data.sitesYaml.childScreenshot.screenshotFile.publicURL
}`}
/>
</Helmet>
Expand Down

0 comments on commit 2669dfa

Please sign in to comment.