blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

Responsive image support #16

Open johnnovak opened 1 year ago

johnnovak commented 1 year ago

glightbox itself supports the data-srcset and data-sizes attributes for responsive images, could you please add support for that?

Check the last example here: https://github.com/biati-digital/glightbox/blob/master/README.md

kinostl commented 11 months ago

@johnnovak I was able to use this technique to get responsive images. It requires attr_list

![alt-text](/images/file.png){srcset="/thumbs/file.png 400w"}