我正在尝试在文章页面上添加ItemList
Schema.org标记,该页面列出了排名前10的软件,并带有指向它们的(外部)链接。
当我在SDTT上测试以下JSON-LD标记时,出现错误消息
为
url
提供的所有值都必须指向同一页面
我真的不明白为什么单个列表项应该使用相同的URL ?!
{
"@context": "http://schema.org",
"@type": "ItemList",
"name": "Title of the page",
"description": "Description goes here",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"item": {
"name": "Product 1",
"image": "https://www.product-1.com/image",
"URL": "https://www.product-1.com"
}
},
{
"@type": "ListItem",
"position": 2,
"item": {
"name": "Product 2",
"image": "https://www.product-2.com/image",
"URL": "https://www.product-2.com"
}
}
]
}
</script>
我使用了略有不同的标记,但没有像https://developers.google.com/search/docs/guides/mark-up-listings那样放置"item": {
,但是这次我收到一条错误消息,提示
为
url
提供的所有值都必须具有相同的域
能帮我解决这个问题吗?
{
"@context":"https://schema.org",
"@type":"ItemList",
"name": "Title of the page",
"description": "Description goes here",
"itemListElement":[
{
"@type":"ListItem",
"position":1,
"name": "Product 1",
"image": "https://www.product-1.com/image",
"URL": "https://www.product-1.com"
},
{
"@type":"ListItem",
"position":2,
"name": "Product 2",
"image": "https://www.product-2.com/image",
"URL": "https://www.product-2.com"
}
]
}