Tweaks to structured data
This commit is contained in:
parent
5389651b27
commit
3ec15ed8e2
@ -5,6 +5,8 @@ export default {
|
|||||||
language: "en",
|
language: "en",
|
||||||
description: "The personal website and blog of Nathan Upchurch.",
|
description: "The personal website and blog of Nathan Upchurch.",
|
||||||
author: {
|
author: {
|
||||||
|
givenName: "Nathan"
|
||||||
|
familyName: "Upchurch"
|
||||||
name: "Nathan Upchurch",
|
name: "Nathan Upchurch",
|
||||||
email: "blog@upchur.ch",
|
email: "blog@upchur.ch",
|
||||||
url: "https://nathanupchurch.com/me",
|
url: "https://nathanupchurch.com/me",
|
||||||
|
@ -3,17 +3,23 @@
|
|||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org/",
|
"@context": "https://schema.org/",
|
||||||
"@type": "Article",
|
"@type": "BlogPosting",
|
||||||
"headline": "{{ title }}",
|
"articleBody": "{{ content | striptags }}"
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "{{ metadata.author.name }}"
|
"familyName": "{{ metadata.author.familyName }}",
|
||||||
|
"givenName": "{{ metadata.author.givenName }}",
|
||||||
|
"image": "{{ metadata.url }}{{ metadata.author.profilePic }}",
|
||||||
|
"name": "{{ metadata.author.name }}",
|
||||||
|
"url": "{{ metadata.author.url }}"
|
||||||
},
|
},
|
||||||
"datePublished": "{{ date }}",
|
"datePublished": "{{ date }}",
|
||||||
"description": "{% if synopsis %}{{ synopsis}}{% endif %}",
|
"description": "{% if synopsis %}{{ synopsis}}{% endif %}",
|
||||||
|
"headline": "{{ title }}",
|
||||||
"image": "{% if imageURL %}{{ imageURL | htmlBaseUrl(metadata.url) }}{% else %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endif %}",
|
"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) }}",
|
"url": "{{ page.url | htmlBaseUrl(metadata.url) }}",
|
||||||
"articleBody": "{{ content | striptags }}"
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<!-- Open Graph -->
|
<!-- Open Graph -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user