Last active
October 24, 2018 08:23
-
-
Save jonoalderson/a15458e2c6a11bc5e1fb6e316388c2de to your computer and use it in GitHub Desktop.
Yoast Schema Example - Blog Post
This file contains 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" : "example@example.com" | |
}, | |
// =============== | |
// 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" | |
}, | |
"hasPart" : { "@id" : "https://www.example.com/blog/#blog" } | |
}, | |
// Blog | |
{ | |
"@type" : "Blog", | |
"@id" : "https://www.example.com/blog/#blog", | |
"url" : "https://www.example.com/blog/", | |
"publisher" : { "@id" : "https://www.example.com/#organization" }, | |
"blogPost" : { "@id" : "https://www.example.com/blog/blog-post/#blogpost" } | |
}, | |
// =============== | |
// WebPage | |
{ | |
"@type" : "WebPage", | |
"@id" : "https://www.example.com/blog/example-blog-post/", | |
"url" : "https://www.example.com/blog/example-blog-post/", | |
"mainEntityOfPage" : "https://www.example.com/blog/example-blog-post/", | |
"name" : "{{Page Title}}", | |
"description" : "{{Page Description}}", | |
"primaryImageOfPage" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/blog/example-blog-post/#primaryimage", | |
"url" : "https://www.example.com/example-blog-post-image.jpg", | |
"caption" : "{{Example Caption}}" | |
}, | |
"mainContentOfPage" : { | |
"@type" : "WebPageElement", | |
"@id" : "https://www.example.com/blog/example-blog-post/#content", | |
"cssSelector" : ["main", ".main"] | |
}, | |
"datePublished" : "2001-01-01", | |
"dateModified" : "2002-02-02T14:55:20", | |
"breadcrumb" : { "@id" : "https://www.example.com/blog/example-blog-post/#breadcrumb" }, | |
"isPartOf" : { "@id" : "https://www.example.com/#website" }, | |
"hasPart" : { "@id" : "https://www.example.com/blog/blog-post/#blogpost" } | |
}, | |
// Breadcrumbs | |
{ | |
"@type" : "BreadcrumbList", | |
"@id" : "https://www.example.com/blog/example-blog-post/#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}}" | |
} | |
}] | |
}, | |
// =============== | |
// BlogPosting | |
{ | |
"@type" : "blogPosting", | |
"@id" : "https://www.example.com/blog/blog-post/#blogpost", | |
"url" : "https://www.example.com/blog/blog-post/", | |
"mainEntityOfPage" : "https://www.example.com/blog/blog-post/", | |
"headline" : "{{Example Headline}}", | |
"datePublished" : "2001-01-01", | |
"dateModified" : "2002-02-02T14:55:20", | |
"image" : { | |
"@id" : "https://www.example.com/blog/example-blog-post/#primaryimage" | |
}, | |
"wordCount" : "123", | |
"articleSection" : ["Cats","Dogs","Animals"], | |
"author" : { "@id" : "https://www.example.com/example-author-bio/#person" }, | |
"isPartOf" : { "@id" : "https://www.example.com/blog/#blog" }, | |
"publisher" : { "@id" : "https://www.example.com/#organization" } | |
}, | |
// =============== | |
// Person | |
{ | |
"@type" : "Person", | |
"@id" : "https://www.example.com/example-author-bio/#person", | |
"url" : "https://www.example.com/example-author-bio/", | |
"name" : "{{Name Of Author}}", | |
"image" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/example-author-bio/#personimage", | |
"url" : "https://www.example.com/example-author-image.jpg", | |
"caption" : "{{Name Of Author}}" | |
} | |
} | |
// =============== | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment