-
Notifications
You must be signed in to change notification settings - Fork 4
/
metadata.json
executable file
·29 lines (29 loc) · 1.09 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
{
"@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": "{{ page.content | strip_html | strip_newlines | truncate: 160 }}",
"author": {
"@type": "Person",
"name": "{{ site.author }}"
},
"publisher": {
"@type": "Organization",
"name": "Data 100 at UC Berkeley",
"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
}
}