Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use eleventyImageTransformPlugin only on specific page #245

Closed
slivos opened this issue Sep 23, 2024 · 1 comment
Closed

Use eleventyImageTransformPlugin only on specific page #245

slivos opened this issue Sep 23, 2024 · 1 comment

Comments

@slivos
Copy link

slivos commented Sep 23, 2024

Hello @zachleat, please is there an option to use functionality of eleventyImageTransformPlugin only on specific page of our website?

For example in my blog's post detail page I use class="entry-content" for content which is injected from CMS. And to this content I added some images that I want to process, but on other pages of my website I use Nunjucks reusable component for images, which doesn't need to be processed with eleventy-img.

Thank you for your response.

@slivos
Copy link
Author

slivos commented Sep 23, 2024

I resolved it with attribute overrides, <img eleventy:ignore>. Now I can use eleventy-img only for blog posts without touching my other website images.

@slivos slivos closed this as completed Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant