Even this could be autogenerated if thought through and the API made available.
Hi,
I think it’s already possible to automatically create de Json with a custom element and @portal(headStart) in the single item (article page)
I have tested and it seems to work :
@portal(headStart)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "@raw(){{item.url}}@endraw"
},
"headline": "@raw(){{item.title}}@endraw",
"description": "@raw(){{item.description}}@endraw",
"image": "@raw(){{item.image.src}}@endraw",
"datePublished": "@raw(){{item.date}}@endraw",
"author": {
"@type": "Person",
"name": "@raw(){{item.author}}@endraw",
"url": "your about page url"
},
"publisher": {
"@type": "Organization",
"name": "your organization's name",
"logo": {
"@type": "ImageObject",
"url": "https://yourwebsite.com/images/logo.png"
}
}
}
</script>
@endPortal
Exactly, also, a third-party developer could easily create a nice little component to do this!