26 lines
915 B
Plaintext
26 lines
915 B
Plaintext
{% if title and structuredData != "none" %}
|
|
<!-- Structured Data -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org/",
|
|
"@type": "BlogPosting",
|
|
"articleBody": "{{ content | striptags }}"
|
|
"author": {
|
|
"@type": "Person",
|
|
"familyName": "{{ metadata.author.familyName }}",
|
|
"givenName": "{{ metadata.author.givenName }}",
|
|
"image": "{{ metadata.url }}{{ metadata.author.profilePic }}",
|
|
"name": "{{ metadata.author.name }}",
|
|
"url": "{{ metadata.author.url }}"
|
|
},
|
|
"datePublished": "{{ date }}",
|
|
"description": "{% if synopsis %}{{ synopsis}}{% endif %}",
|
|
"headline": "{{ title }}",
|
|
"image": "{% if imageURL %}{{ imageURL | htmlBaseUrl(metadata.url) }}{% else %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endif %}",
|
|
"inLanguage": "{{ metadata.language }}",
|
|
"name": "{{ title }}",
|
|
"url": "{{ page.url | htmlBaseUrl(metadata.url) }}",
|
|
}
|
|
</script>
|
|
{% endif %}
|