From 6203735ff817875e97ed6c83a1c2dacccf9b44ff Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Fri, 20 Feb 2026 08:01:41 -0800 Subject: [PATCH] note re if you're doing multiple widths --- eleventy.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index c164930..7a99e1a 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -92,7 +92,12 @@ export default async function(eleventyConfig) { decoding: "async", }, }, - filenameFormat: function (id, src, width, format, options) { + filenameFormat: function (hash, src, width, format, options) { + // If you're building multiple widths + // const extension = path.extname(src); + // const name = path.basename(src, extension); + + // return `${name}-${width}.${extension}`; return path.basename(src); }, });