Fix for image pipeline on Windows
This commit is contained in:
parent
4c2cdf1746
commit
e1c2873907
@ -48,8 +48,9 @@ module.exports = function(eleventyConfig) {
|
|||||||
// https://www.11ty.dev/docs/plugins/image/
|
// https://www.11ty.dev/docs/plugins/image/
|
||||||
eleventyConfig.addPlugin(eleventyConfig => {
|
eleventyConfig.addPlugin(eleventyConfig => {
|
||||||
function relativeToInputPath(inputPath, relativeFilePath) {
|
function relativeToInputPath(inputPath, relativeFilePath) {
|
||||||
let split = inputPath.split(path.sep);
|
let split = inputPath.split("/");
|
||||||
split.pop();
|
split.pop();
|
||||||
|
|
||||||
return path.resolve(split.join(path.sep), relativeFilePath);
|
return path.resolve(split.join(path.sep), relativeFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user