File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const seoImage = generateAbsoluteUrl(image.src);
2626 <meta name =" keywords" content ={ seo ?.keywords || defaultSeo .keywords } />
2727 </slot >
2828 <meta name =" generator" content ={ Astro .generator } />
29+ <meta name =" robots" content ={ seo ?.robots || defaultSeo .robots } />
2930 <!-- OpenGraph Meta -->
3031 <meta property =" og:type" content ={ seo ?.type ?? ' website' } />
3132 <meta property =" og:site_name" content ={ defaultSeo .title } />
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export const seoSchemaWithoutImage = z.object({
1010 canonicalUrl : z . string ( ) . optional ( ) ,
1111 twitter : z . object ( {
1212 creator : z . string ( ) . optional ( ) ,
13- } ) . optional ( )
13+ } ) . optional ( ) ,
14+ robots : z . string ( ) . optional ( ) ,
1415} )
1516
1617const seoSchema = ( image : ImageFunction ) =>
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const DEFAULT_CONFIGURATION: DefaultConfigurationType = {
4444 image : MetaDefaultImage ,
4545 twitter : {
4646 creator : '@cvfolio'
47- }
47+ } ,
48+ robots : 'index, follow' ,
4849 }
4950} ;
You can’t perform that action at this time.
0 commit comments