I create JSON-LD templates; there are lots of new and updated schemas that don’t have plugin support.
- create templates for the schemas you want.
Here’s one for WebSite located at _includes/index.jsonld
:
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "{{ site.title }}",
"url": "{{ site.url }}",
"description": "{{ site.description }}",
"dateModified": "{{ site.time | date_to_xmlschema }}",
"creator": {
"@type": "Person",
"name": "John Doe"
}
}
- include it in your layout:
<script type="application/ld+json">
{% include index.jsonld %}
</script>