-
Notifications
You must be signed in to change notification settings - Fork 1
/
JSON-LD_BlogPosting
49 lines (49 loc) · 2.01 KB
/
JSON-LD_BlogPosting
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
38
39
40
41
42
43
44
45
46
47
48
49
<txp:if_individual_article><script type="application/ld+json">
//
// The document referenced in mainEntityOfPage should be the same as the canonical link.
//
// For example:
//
// * All marked-up URLs should be absolute.
//
// * The "logo" dimensions must not exceed 600x60.
//
// Remove these comment lines.
//
{<txp:variable name="description" value='<txp:meta_description format="" escape="json" />' />
"@context": "http:\/\/schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": "<txp:permlink />",
"headline": "<txp:title escape="json" />",
"datePublished": "<txp:posted gmt="1" format="iso8601" />",
"dateModified": "<txp:modified gmt="1" format="iso8601" />",
"description": "<txp:if_variable name="description" value=""><txp:excerpt escape="p,tidy" format="json" /><txp:else /><txp:variable name="description" /></txp:if_variable>",
"articleSection": "<txp:section title="1" escape="json" />",
<txp:if_article_category>"keywords": ["<txp:category1 title="1" link="0" />"<txp:if_article_category number="2">, "<txp:category2 title="1" link="0" />"</txp:if_article_category>],</txp:if_article_category>
"image": <txp:if_article_image><txp:images limit="1">{
"@type": "ImageObject",
"url": "<txp:image_url />",
"height": <txp:image_info type="h" />,
"width": <txp:image_info type="w" />
}</txp:images><txp:else />"http://cdn.ampproject.org/logo.jpg"</txp:if_article_image>,
"author": {
"@type": "Person",
"name": "<txp:author title="1" escape="json" />"
},
<txp:if_comments>"commentCount": <txp:comments_count />,
"comment": [ <txp:comments form="" wraptag="" break="," class="">{
"text": "<txp:comment_message escape="tidy,p,br" format="json" />",
"author": {
"@type": "Person",
"name": "<txp:comment_name link="0" escape="json" />"
}
}</txp:comments>],</txp:if_comments> "publisher": {
"@type": "Organization",
"name": "<txp:site_name escape="json" />",
"logo": {
"@type": "ImageObject",
"url": "http://<txp:site_url escape="json" />logo.jpg"
}
}
}
</script></txp:if_individual_article>