diff options
Diffstat (limited to 'eleventy.config.mjs')
| -rw-r--r-- | eleventy.config.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eleventy.config.mjs b/eleventy.config.mjs index d81c29a..5bf4a46 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -3,6 +3,13 @@ import { config as siteConfig } from "./siteconfig.mjs"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; import EleventyPluginOgImage from 'eleventy-plugin-og-image'; import fs from "fs" +import { OgImage } from 'eleventy-plugin-og-image/og-image'; + +export class CustomOgImage extends OgImage { + async shortcodeOutput() { + return this.outputUrl(); + } +} export default function(eleventyConfig) { // Order matters, put this at the top of your configuration file. @@ -36,6 +43,7 @@ export default function(eleventyConfig) { }, ], }, + OgImage: CustomOgImage, }); eleventyConfig.addPlugin(eleventyImageTransformPlugin, { |
