这样的结构会不会有问题呢?
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"WebPage",
"name":"Postcards",
"url":"https://local.mysite.com/postcards.html",
"breadcrumb":{
"@type":"BreadcrumbList",
"itemListElement":[
{
"@type":"ListItem",
"position":1,
"item":{
"@id":"https://local.mysite.com",
"name":"My Site"
}
},
{
"@type":"ListItem",
"position":2,
"item":{
"@id":"https://local.mysite.com/postcards.html",
"name":"Postcards"
}
}
]
},
"mainEntity":{
"@type":"WebPageElement",
"offers":{
"@type":"Offer",
"itemOffered":[
{
"@type":"Product",
"name":"Christmas Postcards",
"url":"https://local.mysite.com/christmas-postcards.html"
},
{
"@type":"Product",
"name":"Getaway Postcards",
"url":"https://local.mysite.com/getaway-postcards.html"
}
]
}
}
}</script>
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"WebPage",
"name":"Postcards",
"url":"https://local.mysite.com/postcards.html",
"breadcrumb":{
"@type":"BreadcrumbList",
"itemListElement":[
{
"@type":"ListItem",
"position":1,
"item":{
"@id":"https://local.mysite.com",
"name":"My Site"
}
},
{
"@type":"ListItem",
"position":2,
"item":{
"@id":"https://local.mysite.com/postcards.html",
"name":"Postcards"
}
}
]
},
"mainEntity":{
"@type":"WebPageElement",
"offers":{
"@type":"Offer",
"itemOffered":[
{
"@type":"Product",
"name":"Mini Postcards",
"url":"https://local.mysite.com/mini-postcards.html"
},
{
"@type":"Product",
"name":"Summer Postcards",
"url":"https://local.mysite.com/summer-postcards.html"
}
]
}
}
}</script>
对于单个类别页面可能存在这样的“重复”标记的原因是该页面可能使用多个产品模板。
在当前的实现中,标记是在产品模板中动态构建的。例如,如果单个类别页面有两个产品模板,则标记将被重建两次,但包含不同的内容WebPageElement
.
这会产生不好的结果吗?我检查了谷歌的测试工具,它没有给我任何错误或警告。