Skip to content

Commit cf8d122

Browse files
committed
added generation of twitter image
This will allow us to properly share the pictures in twitter
1 parent 5ebc616 commit cf8d122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.eleventy.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ module.exports = config => {
4646
weight: 700,
4747
style: 'normal',
4848
}],
49-
}
49+
},
50+
generateHTML: (outputUrl) => `<meta property="og:image" content="${outputUrl}" />\n ` +
51+
`<meta property="twitter:image" content="${outputUrl}" />`
5052
});
5153

5254
return {

0 commit comments

Comments
 (0)