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
Logo in Schema is not generated as URL or ImageObject #11304
Comments
Initially reported at https://forum.ghost.org/t/schema-error-a-value-for-the-url-field-is-required/9723 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still a problem with this |
refs #11304 - Previously the schema publisher logo attribute was incorrectly given the logo url - schema.org and Google's docs show the logo needing it's own type and url attributes - I added the correct @type and moved the metaData.site.logo to the new url attribute - This change now clears the error in Google's Structured Data tester - A future improvement would be to size the site logo to 60px in height per Google's recommendation
This was fixed, and therefore closed, but the fix had an issue with duplicating the The correct fix would be a mix of both. Will open a PR in a min. |
closes #11304 - Google requires an `ImageObject` to be always returned for `publisher.logo` (https://developers.google.com/search/docs/data-types/article) - The previous fix 3f5daa6 added a second nested `url` error and got therefore reverted with 7ac6140 - This commit updates the image object generation fn to **always** return an `ImageObject` with minimum of `url` and `@type` properties. If dimensions are available, we'll pass those in there as well
closes #11304 - Google requires an `ImageObject` to be always returned for `publisher.logo` (https://developers.google.com/search/docs/data-types/article) - The previous fix 3f5daa6 added a second nested `url` error and got therefore reverted with 7ac6140 - This commit updates the image object generation fn to **always** return an `ImageObject` with minimum of `url` and `@type` properties. If dimensions are available, we'll pass those in there as well
Hi Ghost team,
Having issues with schema generation.
Steps to reproduce:
You can see the schema error for the Publication Logo as "A value for the url field is required".
Ghost version is 3.0.1
The text was updated successfully, but these errors were encountered: