Optimize images
This commit is contained in:
parent
7a011acd68
commit
08e2d728b2
1 changed files with 2 additions and 0 deletions
|
|
@ -65,11 +65,13 @@ module.exports = function(eleventyConfig) {
|
|||
.use(markdownItAttrs)
|
||||
.use(markdownItEleventyImg, {
|
||||
imgOptions: {
|
||||
widths: [75, 150, 300, 600, 900, 1100],
|
||||
outputDir: path.join("dist", "img"),
|
||||
},
|
||||
globalAttributes: {
|
||||
loading: "lazy",
|
||||
decoding: "async",
|
||||
sizes: "100vw",
|
||||
},
|
||||
});
|
||||
eleventyConfig.setLibrary("md", markdownLibrary);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue