Skip to content

Instantly share code, notes, and snippets.

View patrickcoombe's full-sized avatar

Patrick Coombe patrickcoombe

View GitHub Profile
@patrickcoombe
patrickcoombe / article-json-ld-2024
Created March 21, 2024 19:03
Article JSON-LD 2024
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Title of a News Article",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
@patrickcoombe
patrickcoombe / forbes-faq-jsonld
Created March 21, 2024 18:55
FAQ JSON-LD Example Found on Forbes.com Books
<!-- Schema Markup -->
<
script type = "application/ld+json" > {
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "How Do I Publish a Book",
"acceptedAnswer": {
"@type": "Answer",
@patrickcoombe
patrickcoombe / frequently-asked-questions
Created March 21, 2024 18:17
Frequently Asked Questions FAQ JSON-LD Snippet
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "How to find an apprenticeship?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<p>We provide an official service to search through available apprenticeships. To get started, create an account here, specify the desired region, and your preferences. You will be able to search through all officially registered open apprenticeships.</p>"
@patrickcoombe
patrickcoombe / single-all-in-one-page-list-carousel-json-ld
Created March 21, 2024 18:10
Single, all-in-one-page list for List Item / Carousel
@patrickcoombe
patrickcoombe / carousel-item-list
Created March 21, 2024 18:05
Carousel or Item List JSON-LD
@patrickcoombe
patrickcoombe / json-ld-jnew-york-times
Created March 21, 2024 17:18
JSON-LD New York Times News Article
< script data - rh = "true"
type = "application/ld+json" > {
"@context": "https://schema.org",
"@type": "NewsArticle",
"description": "The lawsuit caps years of regulatory scrutiny of Apple’s wildly popular suite of devices and services, which have fueled its growth into a nearly $3 trillion public company.",
"image": [{
"@context": "https://schema.org",
"@type": "ImageObject",
"url": "https://static01.nyt.com/images/2024/03/06/multimedia/00usa-sues-apple-hfo-gfwq/00usa-sues-apple-hfo-gfwq-videoSixteenByNineJumbo1600.jpg",
"height": 900,
< script type = "application/ld+json" > {
"@context": "https://schema.org",
"@type": "Organization",
"name": "Forbes",
"url": "https://www.forbes.com/",
"logo": "https://i.forbesimg.com/media/assets/forbes_1200x1200.jpg",
"address": {
"@type": "PostalAddress",
"addressCountry": "United States",
"addressLocality": "Jersey City",
@patrickcoombe
patrickcoombe / newsArticleForbes
Created March 21, 2024 17:09
Forbes News Article JSON-LD
< script type = "application/ld+json" > {
"@context": "http://schema.org",
"@type": "NewsArticle",
"image": {
"@type": "ImageObject",
"url": "https://imageio.forbes.com/specials-images/imageserve/65fc3b897fddab1633651c2e/0x0.jpg?format=jpg&height=900&width=1600&fit=bounds",
"width": 542.79,
"height": 304.6
},
"author": {
@patrickcoombe
patrickcoombe / local-business-example
Created March 19, 2024 19:57
JSON-LD local business
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"name": "Dave's Steak House",
@patrickcoombe
patrickcoombe / collection-with-local-business
Created March 19, 2024 19:44
JSON-LD Collection With Local Business
< script class = "city-schema"
type = "application/ld+json" > {
"@context": "http://schema.org",
"@graph": [{
"@type": "WebSite",
"@id": "/#website",
"url": "/",
"name": "",
"description": "Learn about the drug and alcohol detox process, the types of treatment programs available, and the symptoms of detox. Find a detox program near you!",
"publisher": {