From d8e5c5c7a2d19513135901d6dbecb0c04b13e611 Mon Sep 17 00:00:00 2001 From: Christine Belzie Date: Sat, 29 Jun 2024 19:02:13 -0400 Subject: [PATCH] feat: add missing canonical tags --- components/common/layout/SEO/SEO.tsx | 77 ++++++++++++++++++---------- 1 file changed, 50 insertions(+), 27 deletions(-) diff --git a/components/common/layout/SEO/SEO.tsx b/components/common/layout/SEO/SEO.tsx index 22fbbd630..0c916f97e 100644 --- a/components/common/layout/SEO/SEO.tsx +++ b/components/common/layout/SEO/SEO.tsx @@ -9,41 +9,64 @@ interface HeadProps { noindex: boolean } -const OgData:FC = ({ +const OgData: FC = ({ ogTitle, ogDescription, ogImageUrl, ogUrl, - noindex + noindex, }) => { + const currentUrl = typeof window !== 'undefined' ? window.location.href : '' return ( - - {ogTitle || "Open Sauced"} - - - + + {ogTitle || 'Open Sauced'} + + + + - {/* */} - - - - - + {/* */} + + + + + - {/* */} - - - - - - {noindex && } - + {/* */} + + + + + + {noindex && } + ) }