Skip to content

Commit

Permalink
Change site_name to siteName and included siteName ISEO props.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlyn committed Jun 1, 2020
1 parent ef0883d commit ac92b2a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/SEO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface ISEOProps {
title?: string
defaultMetaTitle?: boolean
description?: string
siteName?: string
keywords?: string
image?: {
src: string
Expand All @@ -25,7 +26,7 @@ const SEO: React.FC<ISEOProps> = ({
title,
defaultMetaTitle,
description,
site_name,
siteName,
keywords,
image,
meta = [],
Expand Down Expand Up @@ -68,19 +69,19 @@ const SEO: React.FC<ISEOProps> = ({
}
)
}
if (site_name) {
if (siteName) {
prebuildMeta.push(
{
name: 'site_name',
content: site_name
name: 'siteName',
content: siteName
},
{
property: 'og:site_name',
content: site_name
property: 'og:siteName',
content: siteName
},
{
name: 'twitter:site_name',
content: site_name
name: 'twitter:siteName',
content: siteName
}
)
}
Expand Down

0 comments on commit ac92b2a

Please sign in to comment.