什么是好的,将WebSite
和Article
结合使用还是单独使用?
例如:
example.com
(家庭)的模式:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "",
"url": "",
"potentialAction": {
"@type": "SearchAction",
"target": "{search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
一个帖子example.com/example-post/
的架构(文章):
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "",
"image": {
"@type": "ImageObject",
"url": "",
"width": ,
"height":
}
</script>
现在我的问题是,在文章(example.com/example-post/
)中,我必须单独放置架构(如上所述),或者将其与WebSite
组合在一起,如下所示:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "",
"url": "",
"potentialAction": {
"@type": "SearchAction",
"target": "{search_term_string}",
"query-input": "required name=search_term_string"
}
},
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "",
"image": {
"@type": "ImageObject",
"url": "",
"width": ,
"height":
}
</script>