mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	Add other metadata: og:type and twitter:card
This commit is contained in:
		
							parent
							
								
									c0af6a2f23
								
							
						
					
					
						commit
						89fc76a0a9
					
				| @ -289,6 +289,8 @@ function getPageMetadataHtmlSnippet(req: express.Request, config: GristLoadConfi | ||||
|   const metadataElements: string[] = []; | ||||
|   const maybeDoc = getDocFromConfig(config); | ||||
| 
 | ||||
|   metadataElements.push('<meta property="og:type" content="website">'); | ||||
|   metadataElements.push('<meta name="twitter:card" name="summary_large_image">'); | ||||
|   const description = maybeDoc?.options?.description ?? translate(req, 'gristMetaDescription'); | ||||
|   const escapedDescription = handlebars.Utils.escapeExpression(description); | ||||
|   metadataElements.push(`<meta name="description" content="${escapedDescription}">`); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user