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
Error: Missing sizes attribute on eleventy-img shortcode
#107
Comments
|
Follow-up: just took a look at https://github.com/11ty/eleventy-img/blob/master/generate-html.js#L69 to see what I could find and caught the comment left there. If I'm using multiple formats I'll be sure to add in |
|
The comment is wrong, |
|
Got it. Thanks for the clarification! |
|
Of course @nhoizey is right, I’ve updated the comments to reflect the spec: Just for final clarity, we only add Thanks y’all! |
|
just to make sure we're all referencing the same thing,
|
|
am i crazy or is the first
vs on source
|
|
i just found html spec multipage which is like 100x better than html spec dev here you can clearly see youre referencing when i think makes much more sense |
and it seems like
some other highlights: |
|
|
|
it seems like descriptors,width and pixel density, are the second argument of image candidate strings, which satisfy srcset learning alot today, i still think the generated picture can be optimized further |
@wommy Feel free to open another issue with suggestions! |
|
yeah i definitely will whenever i get the time <3 thanks for all your hard work fellas |
Followed along with the documentation at https://www.11ty.dev/docs/plugins/image/ and attempted to implement this code below:
However, when a build is run I get the following error in my terminal:
I suspect this is related to #59 and #60, but is sizes required? It doesn't seem possible to use the plugin without passing a sizes attribute to the shortcode, making this code in the docs invalid:
Is this a bug? Or is this behavior intentional?
The text was updated successfully, but these errors were encountered: