Ghost/core/test/unit/metadata
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
..
asset_url_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
author_fb_url_spec.js Structured Data 3.0 2016-05-08 17:43:59 +02:00
author_image_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
author_url_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
canonical_url_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
context_object_spec.js Add structured data to static pages 2016-03-30 12:57:13 +01:00
cover_image_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
creator_url_spec.js Structured Data 3.0 2016-05-08 17:43:59 +02:00
description_spec.js Refactored ghost head helper 2016-02-04 22:18:51 -08:00
excerpt_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
keywords_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
modified_date_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
og_type_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
paginated_url_spec.js Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
published_date_spec.js Strutured data: Slack Unfurls & published_at fix 2016-02-22 01:45:00 +01:00
rss_url_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
schema_spec.js Fix errors in JSON-LD output 2016-05-13 15:13:11 +02:00
structured_data_spec.js Structured Data 3.0 2016-05-08 17:43:59 +02:00
title_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
url_spec.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00