From 89fc76a0a90c79a888d3d007b98eb995953c15ab Mon Sep 17 00:00:00 2001 From: fflorent Date: Wed, 16 Oct 2024 17:56:43 +0200 Subject: [PATCH] Add other metadata: og:type and twitter:card --- app/server/lib/sendAppPage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/lib/sendAppPage.ts b/app/server/lib/sendAppPage.ts index 9cc422de..8dbe895f 100644 --- a/app/server/lib/sendAppPage.ts +++ b/app/server/lib/sendAppPage.ts @@ -289,6 +289,8 @@ function getPageMetadataHtmlSnippet(req: express.Request, config: GristLoadConfi const metadataElements: string[] = []; const maybeDoc = getDocFromConfig(config); + metadataElements.push(''); + metadataElements.push(''); const description = maybeDoc?.options?.description ?? translate(req, 'gristMetaDescription'); const escapedDescription = handlebars.Utils.escapeExpression(description); metadataElements.push(``);