Skip to content

Instantly share code, notes, and snippets.

@patrickcoombe
Created March 21, 2024 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickcoombe/bc6d99a8b965d65a402955ee412a9a52 to your computer and use it in GitHub Desktop.
Save patrickcoombe/bc6d99a8b965d65a402955ee412a9a52 to your computer and use it in GitHub Desktop.
Article JSON-LD Yoast Example
< script type = "application/ld+json"
class = "yoast-schema-graph" > {
"@context": "https://schema.org",
"@graph": [{
"@type": "WebPage",
"@id": "https://jsonld.com/article/",
"url": "https://jsonld.com/article/",
"name": "JSON-LD Article Example Code | Steal our JSON-LD",
"isPartOf": {
"@id": "https://jsonld.com/#website"
},
"primaryImageOfPage": {
"@id": "https://jsonld.com/article/#primaryimage"
},
"image": {
"@id": "https://jsonld.com/article/#primaryimage"
},
"thumbnailUrl": "https://jsonld.com/wp-content/uploads/2019/10/article.png",
"datePublished": "2015-09-26T20:14:36+00:00",
"dateModified": "2024-03-21T19:03:52+00:00",
"description": "This is fully validated Google structured data validated JSON-LD markup for the ARTICLE schema markup type free for use.",
"breadcrumb": {
"@id": "https://jsonld.com/article/#breadcrumb"
},
"inLanguage": "en-US",
"potentialAction": [{
"@type": "ReadAction",
"target": ["https://jsonld.com/article/"]
}]
}, {
"@type": "ImageObject",
"inLanguage": "en-US",
"@id": "https://jsonld.com/article/#primaryimage",
"url": "https://jsonld.com/wp-content/uploads/2019/10/article.png",
"contentUrl": "https://jsonld.com/wp-content/uploads/2019/10/article.png",
"width": 700,
"height": 350
}, {
"@type": "BreadcrumbList",
"@id": "https://jsonld.com/article/#breadcrumb",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://jsonld.com/"
}, {
"@type": "ListItem",
"position": 2,
"name": "Article"
}]
}, {
"@type": "WebSite",
"@id": "https://jsonld.com/#website",
"url": "https://jsonld.com/",
"name": "Steal Our JSON-LD",
"description": "Structured Data. Made Simple.",
"potentialAction": [{
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://jsonld.com/?s={search_term_string}"
},
"query-input": "required name=search_term_string"
}],
"inLanguage": "en-US"
}, {
"@type": "Person",
"@id": "https://jsonld.com/#/schema/person/950bce452839a58c18bda4c1bdcf9789",
"name": "Patrick Coombe",
"image": {
"@type": "ImageObject",
"inLanguage": "en-US",
"@id": "https://jsonld.com/#/schema/person/image/",
"url": "https://secure.gravatar.com/avatar/9f8fa81428890649c09cbebce7c6a330?s=96&d=mm&r=g",
"contentUrl": "https://secure.gravatar.com/avatar/9f8fa81428890649c09cbebce7c6a330?s=96&d=mm&r=g",
"caption": "Patrick Coombe"
},
"description": "I'm so passionate about what I do I've actually injured myself in the process. I am not a robot. Founder of @elitestweets ",
"sameAs": ["https://patrickcoombe.com", "https://twitter.com/pmkoom"],
"url": "https://jsonld.com/author/json/"
}]
} < /script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment