Skip to content

Commit

Permalink
Remove useless fragment and fix minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
desko27 committed Mar 7, 2020
1 parent 0acff8a commit 8eda995
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions components/seo/CommonMetaTags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,31 @@ const siteData = {
const CommonMetaTags = ({ title, description: descriptionProp }) => {
const { pathname } = useRouter()
const description = descriptionProp || siteData.metaDescription
const currentUrl = `${siteData.siteRoot}${pathname}`

return (
<>
<NextSeo
title={title}
description={description}
canonical='https://www.canonical.ie/'
openGraph={{
url: `${siteData.siteRoot}${pathname}`,
title,
description,
images: [{
url: `${siteData.siteRoot}/apple-touch-icon.png`,
width: 180,
height: 180,
alt: siteData.siteTitle
}],
site_name: siteData.siteTitle
}}
twitter={{
handle: '@handle',
site: '@site',
cardType: 'summary_large_image'
}}
/>
</>
<NextSeo
title={title}
description={description}
canonical={currentUrl}
openGraph={{
url: currentUrl,
title,
description,
images: [{
url: `${siteData.siteRoot}/apple-touch-icon.png`,
width: 180,
height: 180,
alt: siteData.siteTitle
}],
site_name: siteData.siteTitle
}}
twitter={{
handle: '@handle',
site: '@site',
cardType: 'summary_large_image'
}}
/>
)
}

Expand Down

1 comment on commit 8eda995

@vercel
Copy link

@vercel vercel bot commented on 8eda995 Mar 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.