such a stupid bug

This commit is contained in:
Starbeamrainbowlabs 2023-12-26 12:27:02 +00:00
parent 259b332883
commit 460aed4f3b
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

@ -138,6 +138,6 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPairedShortcode("gallerybox", shortcode_gallerybox);
eleventyConfig.addPassthroughCopy({
"node_modules/keen-slider/keen-slider.es.js": "."
"node_modules/keen-slider/keen-slider.es.js": "./keen-slider.es.js"
});
}

@ -118,6 +118,7 @@ async function picture(source_image, alt, target_dir, urlpath, formats = "__AUTO
}
const target_original = path.join(target_dir, source_parsed.base);
console.error(`DEBUG:target_original`, target_original, `DIRNAME`, path.dirname(target_original));
if (!fs.existsSync(path.dirname(target_original)))
await fs.promises.mkdir(path.dirname(target_original), { recursive: true });
await fs.promises.copyFile(source_image, target_original);