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
The files are correctly generated (in _site/posts) but in the resulting HTML, I get references to posts/image***, instead of either image*** or /posts/image***, so the image is not displayed.
I made it work with a dirty workaround, by making generateSrcSet always return an absolute path:
Relative images are…hard as them successfully being displayed is really dependent on how the URL gets structured. Converting to an absolute URL is the only reliable way that I know of to always ensure it's pointing to the correct place. 11ty/eleventy#789 is also required in order to truly support relative images.
All that said, I'll mull over what you've got here and see if I can come up with a good solution for the time being.
Hi, thank you for this plugin it’s truly awesome!
The issue is with relative
src
attributes for images. If I have this:With this in 11ty config:
And this in the plugin config:
The files are correctly generated (in
_site/posts
) but in the resulting HTML, I get references toposts/image***
, instead of eitherimage***
or/posts/image***
, so the image is not displayed.I made it work with a dirty workaround, by making
generateSrcSet
always return an absolute path:It goes without saying that this is not a clean way to proceed 😅, but I had to do it to use the plugin…
The text was updated successfully, but these errors were encountered: