mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-20 23:37:00 +00:00
seo/geo
This commit is contained in:
1 parent
56cfd26e35
commit
8a081dee3c
21 files changed
+546
-110
No files matched your search
@@ -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} />
|
||||
Reference in new issue
Block a user