Skip to content

Commit 063026a

Browse files
Merge release into next-release
2 parents 58fcb2e + 8988840 commit 063026a

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

_layouts/post.html

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,18 @@
2929
{
3030
"@context":"https://schema.org",
3131
"@type":"BlogPosting",
32-
"headline": "{{ page.heading }}",
33-
{% if page.discussionurl %}
34-
"discussionUrl": "{{ page.discussionurl }}",
35-
{% endif %}
36-
{% if page.author %}
32+
"headline": "{{ page.heading }}"{% if page.discussionurl %},
33+
"discussionUrl": "{{ page.discussionurl }}"{% endif %}{% if page.author %},
3734
"publisher": {
3835
"@type": "Person",
39-
"name": "{% if site.data.authors[page.author].name %}{{ site.data.authors[page.author].name }}{% else %}{{ page.author }}{% endif %}",
40-
{% if site.data.authors[page.author].url %}"url": "{{ site.data.authors[page.author].url }}"{% endif %}
36+
"name": "{% if site.data.authors[page.author].name %}{{ site.data.authors[page.author].name }}{% else %}{{ page.author }}{% endif %}"{% if site.data.authors[page.author].url %},
37+
"url": "{{ site.data.authors[page.author].url }}"{% endif %}
4138
},
4239
"author": {
4340
"@type": "Person",
44-
"name": "{% if site.data.authors[page.author].name %}{{ site.data.authors[page.author].name }}{% else %}{{ page.author }}{% endif %}",
45-
{% if site.data.authors[page.author].url %}"url": "{{ site.data.authors[page.author].url }}"{% endif %}
46-
},
47-
{% endif %}
41+
"name": "{% if site.data.authors[page.author].name %}{{ site.data.authors[page.author].name }}{% else %}{{ page.author }}{% endif %}"{% if site.data.authors[page.author].url %},
42+
"url": "{{ site.data.authors[page.author].url }}"{% endif %}
43+
}{% endif %},
4844
"datePublished": "{{ page.date | date_to_xmlschema }}"
4945
}
5046
</script>

0 commit comments

Comments
 (0)