-
Notifications
You must be signed in to change notification settings - Fork 5
/
metadata.json
34 lines (34 loc) · 1.17 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
31
32
33
34
{
"@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.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
}
}