【发布时间】:2019-04-29 19:42:38
【问题描述】:
Google 等搜索引擎如何处理包含多个 JSON-LD (Schema.org) 块的网页?
例如,如果页面下方有两个不冲突的script 块会怎样?
<script type="application/ld+json">
{ "@context":"http://schema.org",
"@type":"WebPage",
"@id": "#123",
"author": {
"@type": "Person",
"name": "Foo Bar"
}
}
</script>
<script type="application/ld+json">
{ "@context":"http://schema.org",
"@type":"WebPage",
"@id": "#123",
"text": "blah blah blah",
"url":"pageurl"
}
</script>
【问题讨论】:
标签: schema.org json-ld google-rich-snippets