我正在尝试在文章页面上添加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>
我在"item": {
中使用了一个略有不同的标记而没有https://developers.google.com/search/docs/guides/mark-up-listings,但是这次我收到一条错误消息
为
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"
}
]
}