This commit is contained in:
rustdesk committed 2026-03-21 00:20:42 +08:00
1 parent 56cfd26e35
commit 8a081dee3c
21 files changed
+546 -110

No files matched your search

+10
View File
@@ -65,6 +65,14 @@ const seoProps: AstroSeoProps = merge(
twitter: twitter,
}
);
const crawlerDirectives = [
seoProps.noindex ? 'noindex' : 'index',
seoProps.nofollow ? 'nofollow' : 'follow',
'max-image-preview:large',
'max-snippet:-1',
'max-video-preview:-1',
].join(', ');
---
<AstroSeo {...{ ...seoProps, openGraph: await adaptOpenGraphImages(seoProps?.openGraph, Astro.site) }} />
@@ -72,3 +80,5 @@ const seoProps: AstroSeoProps = merge(
<!-- Additional SEO meta tags -->
{keywords && <meta name="keywords" content={keywords} />}
{author && <meta name="author" content={author} />}
<meta name="googlebot" content={crawlerDirectives} />
<meta name="bingbot" content={crawlerDirectives} />