From 31583104bd737ea73a96dbe00da9d055f4461f83 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Tue, 17 Aug 2021 04:32:36 +1000 Subject: [PATCH] Stop SEO from overrideding preiveous meta tags with falsy content --- app/web/src/components/Seo/Seo.tsx | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/web/src/components/Seo/Seo.tsx b/app/web/src/components/Seo/Seo.tsx index 35f7096..7b22c51 100644 --- a/app/web/src/components/Seo/Seo.tsx +++ b/app/web/src/components/Seo/Seo.tsx @@ -22,25 +22,33 @@ const Seo = ({ title={title} titleTemplate={`Cadhub - ${title}`} > - {title || 'cadhub'} - + {title && {title || 'cadhub'}} + {description && } {/* Facebook Meta Tags */} {browser && } - - - + {title && } + {description && ( + + )} + {socialImageUrl && ( + + )} {/* Twitter Meta Tags */} {browser && } - - - + {title && } + {description && ( + + )} + {socialImageUrl && ( + + )} - + {lang && } )