Last active
October 23, 2018 14:46
-
-
Save jonoalderson/c5147920031b4dc0537b77f8a009032e to your computer and use it in GitHub Desktop.
Yoast Schema Example - Generic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://schema.org", | |
"@graph": [ | |
// Organization | |
{ | |
"@type" : "Organization", | |
"@id" : "https://www.example.com/#organization", | |
"url" : "https://www.example.com/", | |
"mainEntityOfPage" : "https://www.example.com/", | |
"name" : "{{Organization Name}}", | |
"logo" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/#logo", | |
"url" : "https://www.example.com/example-logo.jpg", | |
"caption" : "{{Logo Caption}}" | |
}, | |
"sameAs" : [ | |
"https://www.facebook.com/example-profile/", | |
"https://www.instagram.com/example-profile/", | |
"https://en.wikipedia.org/wiki/example-company-page/" | |
], | |
"address": { | |
"@type": "PostalAddress", | |
"addressLocality": "Fake Town, United Kingdom", | |
"addressRegion": "Fake Region", | |
"postalCode": "LS1 5BZ", | |
"streetAddress": "123 Fake Street" | |
}, | |
"Telephone" : "(425) 123-4567", | |
"email" : "[email protected]" | |
}, | |
// =============== | |
// WebSite | |
{ | |
"@type" : "WebSite", | |
"@id" : "https://www.example.com/#website", | |
"url" : "https://www.example.com/", | |
"mainEntityOfPage" : "https://www.example.com/", | |
"name" : "{{Website Name}}", | |
"publisher" : { "@id": "https://www.example.com/#organization" }, | |
"potentialAction" : { | |
"@type" : "SearchAction", | |
"Target" : "https://www.example.com/?s={search_term_string}", | |
"Query-input" : "required name=search_term_string" | |
} | |
}, | |
// =============== | |
// WebPage | |
{ | |
"@type" : "WebPage", | |
"@id" : "https://www.example.com/example-page/", | |
"url" : "https://www.example.com/example-page/", | |
"mainEntityOfPage" : "https://www.example.com/example-page/", | |
"name" : "{{Page Title}}", | |
"description" : "{{Page Description}}", | |
"primaryImageOfPage" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/example-page/#primaryimage", | |
"url" : "https://www.example.com/example-image.jpg", | |
"caption" : "{{Example Caption}}" | |
}, | |
"mainContentOfPage" : { | |
"@type" : "WebPageElement", | |
"@id" : "https://www.example.com/example-page/#content", | |
"cssSelector" : ["main", ".main"] | |
}, | |
"datePublished" : "2001-01-01", | |
"dateModified" : "2002-02-02T14:55:20", | |
"breadcrumb" : { "@id" : "https://www.example.com/example-page/#breadcrumb" }, | |
"isPartOf" : { "@id" : "https://www.example.com/#website" } | |
}, | |
// Breadcrumbs | |
{ | |
"@type" : "BreadcrumbList", | |
"@id" : "https://www.example.com/example-page/#breadcrumb", | |
"itemListElement" : [{ | |
"@type" : "ListItem", "position" : 1, "item" : { | |
"@id" : "https://www.example.com/", "name" : "Home" | |
} | |
}, | |
{ | |
"@type" : "ListItem", "position" : 2, "item" : { | |
"@id" : "https://www.example.com/example/", "name" : "{{Example page}}" | |
} | |
}, | |
{ | |
"@type" : "ListItem", "position" : 3, "item" : { | |
"@id" : "https://www.example.com/example/example/", | |
"name" : "{{Example sub page}}" | |
} | |
}] | |
} | |
// =============== | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment