1
0
Fork 0

fix images

This commit is contained in:
saji 2025-01-01 23:57:08 -06:00
parent bf48a5866c
commit 433a7901f9
2 changed files with 12 additions and 2 deletions

View file

@ -51,7 +51,13 @@ export default async function (eleventyConfig) {
eleventyConfig.addPlugin(pluginBundle);
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
extensions: "html",
formats: [ "auto" ],
formats: [ "webp", "jpeg", null ],
widths: [ 400, 800, 1280, null ],
defaultAttributes: {
loading: "lazy",
decoding: "async",
sizes: "auto",
}
})

View file

@ -54,7 +54,11 @@ html {
overflow-y: scroll;
}
body {
max-width: 80em;
max-width: 40em;
}
img {
max-width: 100%;
height: auto;
}
/* https://www.a11yproject.com/posts/how-to-hide-content/ */