0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
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
..
controllers/frontend Subscribers: Adding subscribe context 2016-05-12 11:02:51 +02:00
metadata Fix errors in JSON-LD output 2016-05-13 15:13:11 +02:00
middleware Add config URLS to CORS whitelist 2016-04-19 13:39:24 +01:00
models_plugins add small permission improvements 2016-05-08 14:22:55 +02:00
server_helpers Fix errors in JSON-LD output 2016-05-13 15:13:11 +02:00
utils Subscribers: Move read CSV into separate utility 2016-05-11 11:22:35 +02:00
api_utils_spec.js Subscribers: finish permission handling 2016-05-11 10:28:12 +02:00
apps_filters_spec.js
apps_spec.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
config_spec.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
error_handling_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
exporter_spec.js
filters_spec.js
ghost_url_spec.js
importer_spec.js
mail_spec.js
migration_fixture_spec.js Subscribers: Migrations for new table + perms 2016-05-11 10:28:10 +02:00
migration_fixture_utils_spec.js Subscribers: Migrations for new table + perms 2016-05-11 10:28:10 +02:00
migration_spec.js Subscribers: Migrations for new table + perms 2016-05-11 10:28:10 +02:00
permissions_spec.js Subscribers: finish permission handling 2016-05-11 10:28:12 +02:00
rss_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
server_helpers_index_spec.js
server_helpers_template_spec.js
server_spec.js
server_utils_spec.js Replace internal tempfile name generator 2016-03-29 15:19:42 -05:00
showdown_client_integrated_spec.js
sitemap_spec.js
slack_spec.js Slack integration 2016-05-08 12:49:15 +02:00
storage_local-file-store_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
utils_pipeline_spec.js
versioning_spec.js
xmlrpc_spec.js