From 224eb1d3ba1f0c70c5e1f79ab80d5ceb480847e6 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sat, 14 Aug 2021 15:49:35 +1000 Subject: [PATCH] Give some TLC the meta tags --- app/web/src/components/Seo/Seo.tsx | 25 +++++++++++++++++++------ app/web/src/index.html | 6 +++++- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/app/web/src/components/Seo/Seo.tsx b/app/web/src/components/Seo/Seo.tsx index 7c8adc5..9a951bc 100644 --- a/app/web/src/components/Seo/Seo.tsx +++ b/app/web/src/components/Seo/Seo.tsx @@ -1,9 +1,9 @@ import { Helmet } from 'react-helmet' const Seo = ({ - title, - description, - lang, + title = "CadHub", + description = "Edit this part of CadHub", + lang = 'en-US', socialImageUrl, }: { title: string @@ -20,12 +20,25 @@ const Seo = ({ title={title} titleTemplate={`Cadhub - ${title}`} > - + {title || 'cadhub'} + + + {/* Facebook Meta Tags */} + + - - Cadhub - {title} + + {/* Twitter Meta Tags */} + + + + + + + + ) diff --git a/app/web/src/index.html b/app/web/src/index.html index a8dc4ed..ea5a410 100644 --- a/app/web/src/index.html +++ b/app/web/src/index.html @@ -6,7 +6,11 @@ - <%= htmlWebpackPlugin.options.title %> + CadHub + + + +