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

Module for Statiq Web that automatically creates picture sets #81

Open
daveaglick opened this issue Feb 15, 2020 · 1 comment
Open

Module for Statiq Web that automatically creates picture sets #81

daveaglick opened this issue Feb 15, 2020 · 1 comment

Comments

@daveaglick
Copy link
Member

For any <img> tag where multiple formats are found, automatically replace with a <picture> element linking to all found formats. Add a data attribute like no-picture to prevent. Module will need to be configured with a way to access documents to check destination for matching files in other formats with same path.

@SilentSin
Copy link

I have a couple of places where an unrelated gif and png have the same name (even before #243), so would this conflict with that or by "where multiple formats are found" did you mean something more like images with the same path and name but different size prefixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants