You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running my blog post in Eleventy v2 and currently migrating to v3.
All good, except 1 thing.
My workaround to extract images from blog posts and show them in the postlist doesn't work anymore.
Here's what I was doing in v2. The key is that extractImage.
Adding a filter called extractImage in the eleventy config file, which relied on JSDOM:
The reason why this doesn't work anymore in v3 is that I'm now trying to use the new eleventyImageTransformPlugin, and that sees the generated images in the home page and tries to process them again, this time not finding the source file.
Any hint on how to make this work, or even to improve this tricky hack?
Thanks
The text was updated successfully, but these errors were encountered:
Hey,
I am running my blog post in Eleventy v2 and currently migrating to v3.
All good, except 1 thing.
My workaround to extract images from blog posts and show them in the postlist doesn't work anymore.
Here's what I was doing in v2. The key is that
extractImage
.Adding a filter called extractImage in the eleventy config file, which relied on JSDOM:
Then in the postlists.njk I was doing:
The reason why this doesn't work anymore in v3 is that I'm now trying to use the new
eleventyImageTransformPlugin
, and that sees the generated images in the home page and tries to process them again, this time not finding the source file.Any hint on how to make this work, or even to improve this tricky hack?
Thanks
The text was updated successfully, but these errors were encountered: