# Issue on Schema markup - Fixed. Can someone commit to repo?

**URL:** <https://forum.ghost.org/t/issue-on-schema-markup-fixed-can-someone-commit-to-repo/2390>\
**Category:** Developer help\
**Created:** [August 11, 2018, 11:42pm UTC](https://forum.ghost.org/t/issue-on-schema-markup-fixed-can-someone-commit-to-repo/2390 "2018-08-11T23:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meneame](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@meneame](https://forum.ghost.org/u/meneame)\
**Post date:** [August 11, 2018, 11:42pm UTC](https://forum.ghost.org/t/issue-on-schema-markup-fixed-can-someone-commit-to-repo/2390/1 "2018-08-11T23:42:53Z")

</div>

/var/www/ghost/current/core/server/data/meta/schema.js

has a mistake, to reproduce issue, take any article and run through Google’s structure data testing tool. Image is incorrectly coded.

Currenty:  
schema = {  
‘@context’: ‘[https://schema.org](https://schema.org)’,  
‘@type’: ‘Article’,  
publisher: {  
‘@type’: ‘Organization’,  
name: escapeExpression(metaData.blog.title),  
logo: schemaImageObject(metaData.blog.logo) || null  
},

Should be:  
schema = {  
‘@context’: ‘[https://schema.org](https://schema.org)’,  
‘@type’: ‘Article’,  
publisher: {  
‘@type’: ‘Organization’,  
name: escapeExpression(metaData.blog.title),  
‘logo’: {  
‘@type’: ‘ImageObject’,  
url: schemaImageObject(metaData.blog.logo) || null  
},

I fixed it locally, and validates fine now

---

<div class="post-metadata">

**Author:** ![Aileen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/aileen/32/9846_2.png) [@Aileen](https://forum.ghost.org/u/Aileen)\
**Post date:** [August 14, 2018, 3:40am UTC](https://forum.ghost.org/t/issue-on-schema-markup-fixed-can-someone-commit-to-repo/2390/2 "2018-08-14T03:40:47Z")

</div>

Hey there!

This is desired behaviour. Let me explain why: Google is very specific for their logo requirements and will complain when they are not 60px\*600px, or when they are an `svg`. As soon as your publication logo fits into the requirement, the image will be listed as `ImageObject` incl. its dimension.

There is an open issue for that, where you can read a bit more about it: [AMP Structured Data errors for `publisher.logo` and `article.image` · Issue #7558 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/issues/7558)

I hope this helps 🤗

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [August 28, 2018, 3:40am UTC](https://forum.ghost.org/t/issue-on-schema-markup-fixed-can-someone-commit-to-repo/2390/3 "2018-08-28T03:40:55Z")

</div>

Closed on August 28, 2018, 3:40am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
