Skip to content

Commit

Permalink
such a stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed Dec 26, 2023
1 parent 259b332 commit 460aed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docs/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
}
1 change: 1 addition & 0 deletions .docs/lib/HTMLPicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 460aed4

Please sign in to comment.