add exclude image flag, request by @flamedfury

This commit is contained in:
madrilene 2025-01-18 08:59:02 +01:00
parent 99ef6f5b31
commit adfd1f9673

View file

@ -4,6 +4,8 @@ title: Images
Using the [Eleventy Image](https://www.11ty.dev/docs/plugins/image/) plugin, there are three ways to handle image optimization: HTML Transform, Markdown syntax, and a Nunjucks shortcode. [See the dedicated blog post to dive deeper.](/blog/post-with-an-image/)
Have a look at the [Attribute Overrides](https://www.11ty.dev/docs/plugins/image/#attribute-overrides) for the HTML Transform methods (1 and 2) for per instance overrides. Adding `eleventy:ignore` to an `<img>` element for example, skips this image.
## **1. HTML Transform**
The HTML Transform automatically processes `<img>` and `<picture>` elements in your HTML files as a post-processing step during the build.