0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
Hannah Wolfe c4d3bd7cd2 Fix errors in JSON-LD output
refs #6534

- don't output publisher for the 'People' type on the author page
- change publisher to a full 'Organisation' for the 'Article' type on posts

Note:
Google's structured data validator also wants image & publisher.logo inside of Article to be full 'ImageObject's.
Currently, it output's an error for them: 'The attribute itemtype has an invalid value.'
However, the spec on Schema.org says a url is valid: https://schema.org/Article,
which is slightly different to Google's spec here: https://developers.google.com/structured-data/rich-snippets/articles#article_markup_properties

Ideally, we would output a full 'ImageObject', however we don't currently have the width & height info required.
Therefore, I think what we have is valid strictly speaking, but we should aim to fix this when we have better image tools.
2016-05-13 15:13:11 +02:00
..
api Subscribers: Error message improvements 2016-05-12 17:37:45 +02:00
apps Subscribers: Error Handling for adding subscribers 2016-05-11 12:55:29 +02:00
config Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
controllers Subscribers: Adding subscribe context 2016-05-12 11:02:51 +02:00
data Fix errors in JSON-LD output 2016-05-13 15:13:11 +02:00
errors Subscribers: Error Handling for adding subscribers 2016-05-11 12:55:29 +02:00
events Make sure events gets initialized 2016-04-09 19:52:37 -05:00
helpers Subscribers: router & form helpers 2016-05-11 10:28:11 +02:00
mail Refactor mail service 2016-02-10 16:31:42 -06:00
middleware Subscribers: router & form helpers 2016-05-11 10:28:11 +02:00
models subscribers: fix adding subscriber from admin if collection is empty 2016-05-11 19:23:44 +02:00
permissions Subscribers: finish permission handling 2016-05-11 10:28:12 +02:00
routes Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
storage Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
translations Subscribers: Error message improvements 2016-05-12 17:37:45 +02:00
utils Subscribers: Move read CSV into separate utility 2016-05-11 11:22:35 +02:00
views move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
filters.js
ghost-server.js
i18n.js Fix jsDoc on i18n.t() 2016-02-22 01:57:22 +01:00
index.js Slack integration 2016-05-08 12:49:15 +02:00
update-check.js deps: bluebird@3.3.3 2016-03-01 15:17:20 -06:00