Closed textbook closed 7 years ago
Thanks for the PR @textbook! To validate I'm pushing the app and using...
This is awesome! Are you worried about that error that Google is throwing about the Image URL?
@osis thanks for taking a look. According the the schema.org docs the image can just be a URL, and Google's docs say the image is only required for AMP pages. Not sure why it thinks the logo URL is invalid, though.
@textbook Okay cool, seems to be a warning anyways. There is a logo URL error but I think that's due to my lazy cf push. Verifying...
@textbook Oddly enough, I don't think Google likes the ImageObject for the logo?
@osis that is weird, because when I tried just putting the URL for the logo attribute I got "http://engineering.pivotal.io/images/logo.svg (The attribute logo.itemtype has an invalid value.)" from the structured data testing tool.
@textbook Also confused since this page has an example of a logo that's an ImageObject. Also found this...
https://webmasters.stackexchange.com/questions/90233/why-is-my-itemprop-image-markup-incorrect
Ah I see, it doesn't like the fact that it's a SVG.
Ah, yes, that must be it; per https://developers.google.com/search/docs/data-types/articles, "Images should be in .jpg, .png, or. gif format" (as an ImageObject
). I'll re-inline the SVG to the main page and add a small PNG version of the logo to keep Google happy.
Looks good! Let's merge and see how Google/others digests. Thanks @textbook!