-
Notifications
You must be signed in to change notification settings - Fork 1
/
JSON-LD_WebPage
37 lines (37 loc) · 1.53 KB
/
JSON-LD_WebPage
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
35
36
37
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "<txp:site_name escape="json" /> <txp:site_slogan escape="json" />",
"url": "<txp:site_url />",
"inLanguage": "<txp:lang />",
"description": "<txp:meta_description format="json" type="section" />",
<txp:if_individual_article>"mainEntity": {
"@type": "Article",
"@id": "<txp:section url="1" escape="json" />",
"datePublished": "<txp:posted gmt="1" format="iso8601" />",
"dateCreated": "<txp:posted gmt="1" format="iso8601" />",
"dateModified": "<txp:modified gmt="1" format="iso8601" />",
"mainEntityOfPage": "<txp:permlink escape="json" />",
"headline": "<txp:title />",<txp:if_article_image>
"image": <txp:images limit="1">{
"@type": "imageObject",
"url": "<txp:site_url escape="json" />img\/image.png",
"height": "<txp:image_info type="h" />",
"width": "<txp:image_info type="w" />"
},</txp:images></txp:if_article_image>
"author": {
"@type": "Organization",
"name": "<txp:authors group="1"><txp:author format="" link="" title="1" escape="json" /></txp:authors>"
},</txp:if_individual_article>
"publisher": {
"@type": "Organization",
"name": "<txp:site_name escape="json" />",
"logo": {
"@type": "imageObject",
"url": "<txp:site_url escape="json" />img\/logo.png"
}
}
}
}
</script>