Fix for image pipeline on Windows

This commit is contained in:
Zach Leatherman 2023-01-23 16:43:00 -06:00
parent 4c2cdf1746
commit e1c2873907

View File

@ -48,8 +48,9 @@ module.exports = function(eleventyConfig) {
// https://www.11ty.dev/docs/plugins/image/
eleventyConfig.addPlugin(eleventyConfig => {
function relativeToInputPath(inputPath, relativeFilePath) {
let split = inputPath.split(path.sep);
let split = inputPath.split("/");
split.pop();
return path.resolve(split.join(path.sep), relativeFilePath);
}