-
Notifications
You must be signed in to change notification settings - Fork 166
/
metadata.json
30 lines (29 loc) · 1.15 KB
/
metadata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": "{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}",
"headline": "{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}",
"datePublished": "{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}",
"dateModified": "{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}",
"description": "{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}",
"author": {
"@type": "Person",
"name": "{{ site.name }}"
},
"publisher": {
"@type": "Organization",
"name": "{{ site.title }}",
"logo": {
"@type": "ImageObject",
"url": "{{ site.logo | prepend: site.baseurl | prepend: site.url }}",
"width": "60",
"height": "60"
}
},
"image": {
"@type": "ImageObject",
"url": "{{ site.logo | prepend: site.baseurl | prepend: site.url }}",
"height": "60",
"width": "60"
}
}