diff --git a/eleventy.config.js b/eleventy.config.js index 51d137e..45a1579 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -2,6 +2,7 @@ import { IdAttributePlugin } from "@11ty/eleventy"; import { attrs } from "@mdit/plugin-attrs"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; import eleventyNavigationPlugin from "@11ty/eleventy-navigation"; +import path from "node:path"; import pluginFilters from "./_config/filters.js"; @@ -40,6 +41,9 @@ export default async function (eleventyConfig) { decoding: "async", }, }, + filenameFormat: function (hash, src, width, format, options) { + return path.basename(src); + }, }); /* Navigation */