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
Change content schemas to require alt text with an image #188
Comments
This makes sense. I am the one that originally switched it from this and when I read this I was like "yeah that's a great idea. I have no idea why I changed it to begin with" but then I just tried switching to this approach and it isn't possible. The return of "image" is much more complex than a single src string. It includes file information related to the optimization and static build and it isn't transformed into that more complex object until build time. I may be missing something but I just tried for a while and there wasn't a way to package the Edit: Still trying to figure out an elegant way to do this. Could by another mistake that I am making. Will update if I find a way |
In our content schemas, it is possible to provide an featured image but no alt text for it. Our schemas hold them separately as in:
a schema like this would prevent authors from adding an image without also including alt text:
which also makes it possible to provide a default with accurate alt text, as in:
The text was updated successfully, but these errors were encountered: