Stop SEO from overrideding preiveous meta tags with falsy content
This commit is contained in:
@@ -22,25 +22,33 @@ const Seo = ({
|
||||
title={title}
|
||||
titleTemplate={`Cadhub - ${title}`}
|
||||
>
|
||||
<title>{title || 'cadhub'}</title>
|
||||
<meta name="description" content={description} />
|
||||
{title && <title>{title || 'cadhub'}</title>}
|
||||
{description && <meta name="description" content={description} />}
|
||||
|
||||
{/* Facebook Meta Tags */}
|
||||
{browser && <meta property="og:url" content={location.href} />}
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content={socialImageUrl} />
|
||||
{title && <meta property="og:title" content={title} />}
|
||||
{description && (
|
||||
<meta property="og:description" content={description} />
|
||||
)}
|
||||
{socialImageUrl && (
|
||||
<meta property="og:image" content={socialImageUrl} />
|
||||
)}
|
||||
|
||||
{/* Twitter Meta Tags */}
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta property="twitter:domain" content="cadhub.xyz" />
|
||||
{browser && <meta property="twitter:url" content={location.href} />}
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<meta name="twitter:image" content={socialImageUrl} />
|
||||
{title && <meta name="twitter:title" content={title} />}
|
||||
{description && (
|
||||
<meta name="twitter:description" content={description} />
|
||||
)}
|
||||
{socialImageUrl && (
|
||||
<meta name="twitter:image" content={socialImageUrl} />
|
||||
)}
|
||||
|
||||
<meta property="og:locale" content={lang} />
|
||||
{lang && <meta property="og:locale" content={lang} />}
|
||||
</Helmet>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user