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