本文介绍了Blogger:模板中的Schema.org BlogPosting属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google测试工具为我提供了默认Blogger模板代码中的Blogposting属性的错误消息。

Google Testing Tool gives me an error message for the Blogposting properties that are in the default Blogger template code.

<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
<meta content='http://3.bp.blogspot.com/-Ueq2DH-BE-w/VRERR_6UQ3I/AAAAAAAAHB8/W9hPxVqDOtM/s1600/DNT.jpg' itemprop='image_url'/>
<meta content='xxxxx' itemprop='blogId'/>
<meta content='xxxxx' itemprop='postId'/>
<a name='xxxxxx'></a>

它表示它不会将这些属性识别为:

It says that it does not recognise these properties as part of http://schema.org/BlogPosting:


  1. image_url

  2. blogId

  3. postId

我应该忽略这个错误信息?

Should I ignore this error message?

或者我应该从博主模板中删除这部分微数据代码?

Or should I delete this part of the microdata code from the blogger template?

推荐答案

我已阅读你的帖子,我可以帮你做以下事情:

I have read your post and I can help you just do following things:

(1)。修复博客&发布ID错误:

在模板中找到以下代码并删除它们:

Find below piece of codes in your template and delete them:

< meta expr:content ='data:blog.blogId'itemprop ='blogId'/>
< meta expr:content ='data:post.id'itemprop ='postId'/>

(2)。修复image_url:

在模板中找到以下代码:

Find below code in your template:

<meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>

并将其替换为< meta expr:content ='data:post .firstImageUrl'itemprop ='image'/>

来源链接:

您可能会发现更多错误,例如标题,更新,作者,日期发布。您可以通过访问此链接来修复它们`

You may find more errors like Headline,updated,author,datepublished. You can fixing them by visiting this link http://101helper.blogspot.com/2015/08/fixing-headline-and-datepublished-blogger.html`

这篇关于Blogger:模板中的Schema.org BlogPosting属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 03:57