Fehlelrkorrekturen

This commit is contained in:
2025-11-10 13:03:59 +01:00
parent c41621d901
commit e82891c544
2 changed files with 98 additions and 2 deletions

View File

@@ -66,10 +66,10 @@
// === <img> (JPEG-Fallback) ===
const jpegSrcset = breakpoints
.map(bp => `${basePath}${bp}/jpeg/${filename}.jpg ${bp}w`)
.map(bp => `${basePath}${bp}/jpeg/${filename}.jpeg ${bp}w`)
.join(", ");
img.setAttribute("src", `${basePath}1920/jpeg/${filename}.jpg`);
img.setAttribute("src", `${basePath}1920/jpeg/${filename}.jpeg`);
img.setAttribute("srcset", jpegSrcset);
img.setAttribute("sizes", "100vw");