我一直在处理这个BlogPosting
架构,我通过Google测试工具运行它,最后我看到一条错误消息:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"mainentityofpage": "https://www.northcountrylaw.com",
"headline": "14 Ways Json Can Improve Your SEO",
"alternativeHeadline": "and the women who love them",
"image": "http://example.com/image.jpg",
"award": "Best article ever written",
"editor": "John Doe",
"genre": "search engine optimization",
"keywords": "seo sales b2b",
"wordcount": "1120",
"Publisher": {
"@type": "Organization",
"name": "Cat's Meow",
"logo": {
"@type": "ImageObject",
"name": "Cats cats cats",
"width": "1024",
"height": "1024",
"url": "https://www.greatcats.png"
}
},
"url": "http://www.example.com",
"datePublished": "2015-09-20",
"dateCreated": "2015-09-20",
"dateModified": "2015-09-20",
"description": "We love to do stuff to help people and stuff",
"articleBody": "You can paste your entire post in here, and yes it can get really really long.",
"author": {
"@type": "Person",
"name": "kitten boots"
},
</script>
答案 0 :(得分:1)
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState)
{
View v = inflater.inflate(R.layout.training1_fragment, container,
false);
setHasOptionMenu(true);
return v;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_save :
{
//Write here what to do you on click
return true;
}
}
return super.onOptionsItemSelected(item);
}
,但只有三个{
。}
之后有一个,
,但后面没有任何内容。因此,您必须删除逗号并关闭}
:
author
Schema.org术语区分大小写。它必须是:
"author": {
"@type": "Person",
"name": "kitten boots"
}
}
代替publisher
Publisher
代替mainEntityOfPage
mainentityofpage
代替wordCount