From b12d5dc2ba757c16df684fc0d4f4e8c7095beb1d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 23 Jan 2023 14:56:41 +0000 Subject: [PATCH] feat: remove manifest and feed link in home page --- src/components/common/SEOHead.tsx | 45 +++++++++++++++++------------- src/components/site/SiteLayout.tsx | 1 + 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/components/common/SEOHead.tsx b/src/components/common/SEOHead.tsx index 52a13567..47f00ad2 100644 --- a/src/components/common/SEOHead.tsx +++ b/src/components/common/SEOHead.tsx @@ -7,7 +7,8 @@ export const SEOHead: React.FC<{ description?: string | null image?: string | null icon?: string | null -}> = ({ siteName, title, description, image, icon }) => { + site?: string +}> = ({ siteName, title, description, image, icon, site }) => { return ( {title ? `${title} - ${siteName}` : siteName} @@ -27,26 +28,30 @@ export const SEOHead: React.FC<{ /> )} - - - - + {site && ( + <> + + + + + + )} ) } diff --git a/src/components/site/SiteLayout.tsx b/src/components/site/SiteLayout.tsx index 8cbeedb8..9929b9d1 100644 --- a/src/components/site/SiteLayout.tsx +++ b/src/components/site/SiteLayout.tsx @@ -62,6 +62,7 @@ export const SiteLayout: React.FC = ({ } image={page.data?.cover || getUserContentsUrl(site.data?.avatars?.[0])} icon={getUserContentsUrl(site.data?.avatars?.[0])} + site={domainOrSubdomain} /> {site?.data?.css && (