fix: 🔧 return content unaltered if transform condition not met

This commit is contained in:
Sebin Nyshkim 2025-07-04 18:28:30 +02:00
parent a28d070a30
commit 215e5fca89

View file

@ -68,6 +68,8 @@ export default async function (eleventyConfig) {
] ]
}); });
} }
return content;
}); });
eleventyConfig.addFilter('getOgImage', getOgImage); eleventyConfig.addFilter('getOgImage', getOgImage);
@ -78,7 +80,7 @@ export default async function (eleventyConfig) {
}); });
eleventyConfig.addPlugin(eleventyPluginNavigation); eleventyConfig.addPlugin(eleventyPluginNavigation);
eleventyConfig.addPlugin(eleventyImagePlugin, IMAGE_TRANSFORM_OPTS); eleventyConfig.addPlugin(eleventyImagePlugin, IMAGE_TRANSFORM_OPTS);
eleventyConfig.setLibrary('md', markdownIt(MARKDOWNIT_OPTIONS)); eleventyConfig.setLibrary('md', markdownIt(MARKDOWNIT_OPTIONS));
} }