Skip to content

Instantly share code, notes, and snippets.

@cmandesign
Created April 1, 2019 11:40
Show Gist options
  • Save cmandesign/9cb2c13ce2da38b714fa01858ac4bfa2 to your computer and use it in GitHub Desktop.
Save cmandesign/9cb2c13ce2da38b714fa01858ac4bfa2 to your computer and use it in GitHub Desktop.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://google.com/article"
},
"headline": "Post Headline",
"alternativeHeadline": "Meta Description or any other format you want to add",
"image": "http://cdn.myweb.com/FeaturedImageUrl.jpg",
"author": {
"@type": "Person",
"name": "Soroosh Khodami"
},
"publisher": {
"@type": "Organization",
"name": "MyWebsite",
"logo": {
"@type": "ImageObject",
"url": "https://cdn.myweb.com/logo.jpg"
}
},
"genre": "My Article Primary Category",
"keywords": "My Tags",
"wordcount": "Word counts",
"url": "Permalink of article",
"datePublished": "PublishDate",
"dateCreated": "DateCreated",
"dateModified": "DateModified",
"description": "Meta Description (I want to use Yoast format)",
"articleBody": "Whole content of article and its really big.",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "WP-PostRating Average",
"bestRating": "5",
"ratingCount": "Count of votes"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment