17 lines
380 B
JavaScript
17 lines
380 B
JavaScript
|
const ogImagePlugin = require('eleventy-plugin-og-image');
|
||
|
const fs = require('node:fs');
|
||
|
|
||
|
module.exports = function (eleventyConfig) {
|
||
|
eleventyConfig.addPlugin(ogImagePlugin, {
|
||
|
satoriOptions: {
|
||
|
fonts: [
|
||
|
{
|
||
|
name: 'Space Grotesk',
|
||
|
data: fs.readFileSync('./src/assets/fonts/SpaceGrotesk-Regular.ttf'),
|
||
|
weight: 500,
|
||
|
style: 'normal',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
});
|
||
|
}
|