From ac92b2a7c4e158ab1229ca80aeff5e8b3071e34b Mon Sep 17 00:00:00 2001 From: merlyn Date: Mon, 1 Jun 2020 22:13:38 +0530 Subject: [PATCH] Change site_name to siteName and included siteName ISEO props. --- src/components/SEO/index.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/SEO/index.tsx b/src/components/SEO/index.tsx index 8176e68ce4..8d42bafa6a 100644 --- a/src/components/SEO/index.tsx +++ b/src/components/SEO/index.tsx @@ -10,6 +10,7 @@ interface ISEOProps { title?: string defaultMetaTitle?: boolean description?: string + siteName?: string keywords?: string image?: { src: string @@ -25,7 +26,7 @@ const SEO: React.FC = ({ title, defaultMetaTitle, description, - site_name, + siteName, keywords, image, meta = [], @@ -68,19 +69,19 @@ const SEO: React.FC = ({ } ) } - 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 } ) }