update twitter:image and og:image

This commit is contained in:
Dawid Wysokiński 2021-01-09 11:08:37 +01:00
parent 2c54f39d1c
commit a3c9bd75b2
3 changed files with 3 additions and 3 deletions

View File

@ -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

BIN
src/images/seo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB