Last active
March 27, 2023 04:58
-
-
Save Suleman-Elahi/5c061be15f8c7a5a668514b2b3f5062b to your computer and use it in GitHub Desktop.
JSON/LD Schema Markup Code for a Blog. The most optimal piece of JSON/LD code that I have created after researching on various highly ranking blogs and news website.
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "BlogPosting", | |
"mainEntityOfPage": { | |
"@type": "WebPage", | |
"@id": "https://example.com/blog-post" | |
}, | |
"headline": "Optimizing Your Blog for Search Engine Rankings", | |
"datePublished": "2023-03-23T12:00:00-07:00", | |
"dateModified": "2023-03-23T12:00:00-07:00", | |
"author": { | |
"@type": "Person", | |
"@id": "https://example.com/#/schema/person/88200ae5759e8e83032cafad20ef05cc", | |
"name": "Upanishad Sharma", | |
"image": { | |
"@type": "ImageObject", | |
"inLanguage": "en-US", | |
"@id": "https://example.com/#/schema/person/image/", | |
"url": "https://secure.gravatar.com/avatar/6c8fd002d7c3181c04fa0d4d0ffa8af4?s=96&d=mm&r=g", | |
"contentUrl": "https://secure.gravatar.com/avatar/6c8fd002d7c3181c04fa0d4d0ffa8af4?s=96&d=mm&r=g", | |
"caption": "Upanishad Sharma" | |
}, | |
"sameAs": [ | |
"https://www.upanishadsharma.com/", | |
"https://www.linkedin.com/in/u-sharma-/", | |
"https://twitter.com/https://twitter.com/UpanishadSharma" | |
], | |
"url": "https://example.com/author/upanishad5574/" | |
}, | |
"publisher": { | |
"@type": "Organization", | |
"@id": "https://www.example.com/#organization", | |
"name": "Example Blog", | |
"sameAs": [ | |
"https://www.youtube.com/Example", | |
"https://www.facebook.com/Example", | |
"https://www.instagram.com/Example/", | |
"https://twitter.com/Example", | |
"https://www.pinterest.com/Example" | |
], | |
"logo": { | |
"@type": "ImageObject", | |
"url": "https://example.com/logo.png", | |
"width": 60, | |
"height": 60 | |
} | |
}, | |
"articleSection": [ | |
"Internet", | |
"Opera Browser", | |
"Browsing Tips", | |
"Artificial Intelligence" | |
], | |
"description": "Learn how to optimize your blog for search engine rankings and increase your visibility online.", | |
"articleBody": "In this post, we'll explore some of the best strategies for optimizing your blog for search engine rankings. We'll cover topics such as keyword research, on-page optimization, and link building, and provide practical tips and examples to help you implement these strategies on your own blog. By following these tips, you can improve your blog's visibility on search engines and attract more traffic to your site.", | |
"image": { | |
"@type": "ImageObject", | |
"url": "https://example.com/image.jpg", | |
"width": 1200, | |
"height": 800 | |
}, | |
"keywords": "blog optimization, search engine rankings, keyword research, on-page optimization, link building" | |
} | |
<script> |
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "BlogPosting", | |
"mainEntityOfPage": { | |
"@type": "WebPage", | |
"@id": "{{post_url}}" | |
}, | |
"headline": "{{post_title}}", | |
"datePublished": "{{date_published}}", | |
"dateModified": "{{date_modified}}", | |
"author": { | |
"@type": "Person", | |
"@id": "{{author_id}}", | |
"name": "{{author_name}}", | |
"image": { | |
"@type": "ImageObject", | |
"inLanguage": "en-US", | |
"@id": "{{author_id}}#/schema/person/image/", | |
"url": "{{author_image}}", | |
"contentUrl": "{{author_image}}", | |
"caption": "{{author_name}}" | |
}, | |
"sameAs": [ | |
{{author_own_website}}, | |
"{{author_linkedin}}", | |
"{{author_twitter}}" | |
], | |
"url": "{{author_url}}" | |
}, | |
"publisher": { | |
"@type": "Organization", | |
"@id": "{{website_url}}#organization", | |
"name": "{{website_name}}", | |
"sameAs": [ | |
"https://www.youtube.com/Example", | |
"https://www.facebook.com/Example", | |
"https://www.instagram.com/Example/", | |
"https://twitter.com/Example", | |
"https://www.pinterest.com/Example" | |
], | |
"logo": { | |
"@type": "ImageObject", | |
"url": "{{site_logo_url}}", | |
"width": 60, | |
"height": 60 | |
} | |
}, | |
"articleSection": [ | |
"Internet", | |
"Opera Browser", | |
"Browsing Tips", | |
"Artificial Intelligence" | |
], | |
"description": "{{article_description}}", | |
"articleBody": "{{article_body}}", | |
"image": { | |
"@type": "ImageObject", | |
"url": "{{article_featured_image}}", | |
"width": 1200, | |
"height": 800 | |
}, | |
"keywords": "{{article_keywords}}" | |
} | |
<script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put it just before the
</head>
and change the {{}} variables accordingly. Can use it to create a plugin for various CMS. WordPress can do this automatically though. Might help someone who is creating a static website.