![]() |
You can use this sample code in your blog as json-ld formate. |
<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BlogPosting", "mainEntityOfPage":{ "@type":"WebPage", "@id":"http://applefostering.co.uk/skills-foster/" }, "headline": "The Skills to Foster", "image": { "@type": "ImageObject", "url": "http://applefostering.co.uk/wp-content/uploads/family.jpg", "height": 463, "width": 700 }, "datePublished": "2016-02-12", "dateModified": "2016-02-12", "author": { "@type": "Person", "name": "Person’s Name" }, "publisher": { "@type": "Organization", "name": "Apple Fostering", "logo": { "@type": "ImageObject", "url": "http://applefostering.co.uk/apple-logo-schema/", "width": 550, "height": 60 } }, "description": "A brief description of your article", "articleBody": "You can put your entire article in here: it can be as long as you want." } </script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://www.example.com/visas/${fn:replace(fn:toLowerCase(articleBean.articleTitle), ' ', '-')}"
},
"headline": "${title}",
"description": "${articleBean.articleMetaDescription}",
"image": "${fileUrl}${articleBean.bannerImage}",
"author": {
"@type": "Organization",
"name": "Emirates Visa Online"
},
"publisher": {
"@type": "Organization",
"name": "Example Company",
"logo": {
"@type": "ImageObject",
"url": "https://www.example.com/images/example-logo.png",
"width": 150,
"height": 50
}
},
"datePublished": "<fmt:formatDate pattern="dd-MM-yyyy" value="${articleBean.createdDate}" />",
"dateModified": "<fmt:formatDate pattern="dd-MM-yyyy" value="${articleBean.modifiedDate}" />"
}
</script>
Comments
Post a Comment