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
Is there a way to output only the src and srcset contents without the image tag?
Example:
I'm using jekyll-cloudinary together with lightGallery and some custom markup. In order to reference the image that lightGallery will use upon opening, I need to reference the image I would like to show in the data-src or data-srcset attribute. The image I reference is a different image than the one in the thumbnail (my thumbnail is a square version).
It is not currently possible directly, but you could develop a plugin to add a filter that would take jekyll-cloudinary output and keep only the content of the srcset.
From jekyll-cloudinary created by jessecrouch: nhoizey#62
Is there a way to output only the src and srcset contents without the image tag?
Example:
I'm using jekyll-cloudinary together with lightGallery and some custom markup. In order to reference the image that lightGallery will use upon opening, I need to reference the image I would like to show in the data-src or data-srcset attribute. The image I reference is a different image than the one in the thumbnail (my thumbnail is a square version).
currently:
I would like to provide a jekyll-cloudinary generated data-srcset version of that with an output like this:
Is it possible to render only the data-srcset portion or another way of going about this? Any help appreciated, thanks!
The text was updated successfully, but these errors were encountered: