mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Remove useless icon size
This commit is contained in:
parent
9323d1cc21
commit
35b750dad5
@ -297,11 +297,8 @@ function getPageMetadataHtmlSnippet(req: express.Request, config: GristLoadConfi
|
|||||||
|
|
||||||
const icon = maybeDoc?.options?.icon ?? new URL('img/opengraph-preview-image.png', staticBaseUrl).href;
|
const icon = maybeDoc?.options?.icon ?? new URL('img/opengraph-preview-image.png', staticBaseUrl).href;
|
||||||
const escapedIcon = handlebars.Utils.escapeExpression(icon);
|
const escapedIcon = handlebars.Utils.escapeExpression(icon);
|
||||||
const iconSize = '100';
|
|
||||||
metadataElements.push(`<meta name="thumbnail" content="${escapedIcon}">`);
|
metadataElements.push(`<meta name="thumbnail" content="${escapedIcon}">`);
|
||||||
metadataElements.push(`<meta property="og:image" 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}">`);
|
metadataElements.push(`<meta name="twitter:image" content="${escapedIcon}">`);
|
||||||
|
|
||||||
const maybeDocTitle = getDocName(config);
|
const maybeDocTitle = getDocName(config);
|
||||||
|
Loading…
Reference in New Issue
Block a user