Optimize images

This commit is contained in:
Devon Campbell 2023-10-22 14:28:50 -05:00
commit 08e2d728b2

View file

@ -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);