fix images
This commit is contained in:
parent
bf48a5866c
commit
433a7901f9
|
@ -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",
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
|
|
@ -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/ */
|
||||
|
|
Loading…
Reference in a new issue