【发布时间】:2016-12-06 06:40:21
【问题描述】:
我有一个医生博客。我的第一页只有一些数据和热门帖子。
所以我用这个:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "website name",
"description": "website description",
"publisher": {
"@type": "WebPageMedic",
"name": "my company name"
}
}
</script>
现在换一个页面,怎么写JSON-LD格式?
我试试这个:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "website name",
"description": "website description",
"publisher": {
"@type": "WebPageMedic",
"name": "my company name"
},
"mainEntity":{
"@type":"BlogPosting",
"headline":"BlogPosting",
"datePublished":"2015-03-09T13:08:00-07:00",
"articleBody": "articleBody"
}
}
</script>
我想我必须在所有页面中写网站信息(WebPage),然后在mainEntity 中我可以写BlogPosting 和其他东西。
我说的对吗?
【问题讨论】:
标签: blogs schema.org json-ld