Add OG to calendar and summary with large image card property to all

This commit is contained in:
Maxime Cesson 2022-07-26 11:47:07 +02:00
parent b2332d7206
commit 9865b9a1f5
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,8 @@ const ogData = `
<meta property="og:type" content="website">
<meta property="og:title" content="{{title}}">
<meta property="og:description" content="CryptPad: end-to-end encrypted collaboration suite">
<meta property="og:image" content="{{rootUrl}}/customize/images/opengraph_preview/{{image}}">`;
<meta property="og:image" content="{{rootUrl}}/customize/images/opengraph_preview/{{image}}">
<meta property="twitter:card" content="summary_large_image">`;
var previewExists = function (name) {
if (Fs.existsSync(__dirname + '/../customize/images/opengraph_preview/')) {
@ -114,6 +115,7 @@ var appIndexesToBuild = [
'whiteboard',
'slide',
'file',
'calendar',
'drive',
'teams'
];