update twitter:image and og:image
This commit is contained in:
parent
2c54f39d1c
commit
a3c9bd75b2
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { useStaticQuery, graphql } from 'gatsby';
|
||||
import seoBG from '@images/seo-bg.png';
|
||||
import seoImg from '@images/seo.png';
|
||||
|
||||
function SEO({ description, lang, meta, title, pathname }) {
|
||||
const { site } = useStaticQuery(
|
||||
|
@ -58,7 +58,7 @@ function SEO({ description, lang, meta, title, pathname }) {
|
|||
},
|
||||
{
|
||||
property: `og:image`,
|
||||
content: `${site.siteMetadata.siteUrl}${seoBG}`,
|
||||
content: `${site.siteMetadata.siteUrl}${seoImg}`,
|
||||
},
|
||||
{
|
||||
property: `og:image:width`,
|
||||
|
@ -94,7 +94,7 @@ function SEO({ description, lang, meta, title, pathname }) {
|
|||
},
|
||||
{
|
||||
name: `twitter:image`,
|
||||
content: `${site.siteMetadata.siteUrl}${seoBG}`,
|
||||
content: `${site.siteMetadata.siteUrl}${seoImg}`,
|
||||
},
|
||||
{
|
||||
name: `twitter:image:alt`,
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 675 KiB |
Binary file not shown.
After Width: | Height: | Size: 585 KiB |
Reference in New Issue