From 460aed4f3bd4cf35a84f13a3a15804f0500e51b3 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 26 Dec 2023 12:27:02 +0000 Subject: [PATCH] such a stupid bug --- .docs/.eleventy.js | 2 +- .docs/lib/HTMLPicture.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.docs/.eleventy.js b/.docs/.eleventy.js index ed44c06..6a10e9b 100644 --- a/.docs/.eleventy.js +++ b/.docs/.eleventy.js @@ -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" }); } diff --git a/.docs/lib/HTMLPicture.js b/.docs/lib/HTMLPicture.js index 7e3aeaa..28ceae8 100644 --- a/.docs/lib/HTMLPicture.js +++ b/.docs/lib/HTMLPicture.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);