1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

fix share images

This commit is contained in:
Matthias Kretschmann 2018-05-11 01:17:25 +02:00
parent fdf9b9002d
commit 4064a8c5b0
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -18,21 +18,21 @@ const SEO = ({ project, meta }) => {
{/* General tags */} {/* General tags */}
<meta name="description" content={description} /> <meta name="description" content={description} />
<meta name="image" content={image} /> <meta name="image" content={`${meta.url}${image}`} />
<link rel="canonical" href={url} /> <link rel="canonical" href={url} />
{/* OpenGraph tags */} {/* OpenGraph tags */}
<meta property="og:url" content={url} /> <meta property="og:url" content={url} />
<meta property="og:title" content={title} /> <meta property="og:title" content={title} />
<meta property="og:description" content={description} /> <meta property="og:description" content={description} />
<meta property="og:image" content={image} /> <meta property="og:image" content={`${meta.url}${image}`} />
{/* Twitter Card tags */} {/* Twitter Card tags */}
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content={meta.social.Twitter} /> <meta name="twitter:creator" content={meta.social.Twitter} />
<meta name="twitter:title" content={title} /> <meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} /> <meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} /> <meta name="twitter:image" content={`${meta.url}${image}`} />
</Helmet> </Helmet>
) )
} }