mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Set icon dimensions
This commit is contained in:
parent
fbe9664e18
commit
468c7d4bd5
@ -297,8 +297,11 @@ function getPageMetadataHtmlSnippet(req: express.Request, config: GristLoadConfi
|
||||
|
||||
const icon = maybeDoc?.options?.icon ?? new URL('icons/grist.png', staticBaseUrl).href;
|
||||
const escapedIcon = handlebars.Utils.escapeExpression(icon);
|
||||
const iconSize = '100';
|
||||
metadataElements.push(`<meta name="thumbnail" content="${escapedIcon}">`);
|
||||
metadataElements.push(`<meta property="og:image" content="${escapedIcon}">`);
|
||||
metadataElements.push(`<meta property="og:image:width" content="${iconSize}">`);
|
||||
metadataElements.push(`<meta property="og:image:height" content="${iconSize}">`);
|
||||
metadataElements.push(`<meta name="twitter:image" content="${escapedIcon}">`);
|
||||
|
||||
const title = (getPageTitle(config) ?? translate(req, 'Welcome')) + getPageTitleSuffix(config);
|
||||
|
Loading…
Reference in New Issue
Block a user