From 360d8385782b01ca13412693110454e22772e863 Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Tue, 16 Aug 2022 10:37:55 -0700 Subject: [PATCH] (core) Add Open Graph image tags Summary: Adds a few missing Open Graph tags to Grist pages. Test Plan: Manual. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3586 --- app/server/lib/sendAppPage.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/server/lib/sendAppPage.ts b/app/server/lib/sendAppPage.ts index c3f7b499..a954feb3 100644 --- a/app/server/lib/sendAppPage.ts +++ b/app/server/lib/sendAppPage.ts @@ -164,12 +164,16 @@ function getPageMetadataHtmlSnippet(config: GristLoadConfig): string { if (description) { const content = handlebars.Utils.escapeExpression(description); metadataElements.push(``); + metadataElements.push(``); + metadataElements.push(``); } - const thumbnail = maybeDoc?.options?.icon; - if (thumbnail) { - const content = handlebars.Utils.escapeExpression(thumbnail); + const icon = maybeDoc?.options?.icon; + if (icon) { + const content = handlebars.Utils.escapeExpression(icon); metadataElements.push(``); + metadataElements.push(``); + metadataElements.push(``); } return metadataElements.join('\n');