0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛Fixed misspelled schema.org type for WebSite (#9526)

closes #9525

- updated the schema type to 'WebSite' as it is the correct spelling according to schema.org. See [here](http://schema.org/WebSite)
This commit is contained in:
CriticalRespawn 2018-03-23 03:50:28 +00:00 committed by Aileen Nowak
parent 4013023d60
commit 60386dbba5
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ function getPostSchema(metaData, data) {
function getHomeSchema(metaData) {
var schema = {
'@context': 'https://schema.org',
'@type': 'Website',
'@type': 'WebSite',
publisher: {
'@type': 'Organization',
name: escapeExpression(metaData.blog.title),

View file

@ -356,7 +356,7 @@ describe('getSchema', function () {
should.deepEqual(schema, {
'@context': 'https://schema.org',
'@type': 'Website',
'@type': 'WebSite',
description: 'This is the theme description',
image: {
'@type': 'ImageObject',

View file

@ -103,7 +103,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(/<link rel="alternate" type="application\/rss\+xml" title="Ghost" href="http:\/\/localhost:65530\/rss\/" \/>/);
rendered.string.should.match(/<script type=\"application\/ld\+json\">/);
rendered.string.should.match(/"@context": "https:\/\/schema.org"/);
rendered.string.should.match(/"@type": "Website"/);
rendered.string.should.match(/"@type": "WebSite"/);
rendered.string.should.match(/"publisher": {\n "@type": "Organization",\n "name": "Ghost",/);
rendered.string.should.match(/"url": "http:\/\/localhost:65530\/"/);
rendered.string.should.match(/"image": "http:\/\/localhost:65530\/content\/images\/blog-cover.png"/);