由Schema优化的博客帖子

时间:2013-09-04 05:29:39

标签: metadata microdata schema.org rich-snippets

我对使用Rich Snippets优化HTML的方法很陌生。我不确定以下每个列表项的区别是什么:

  1. http://schema.org/Article
  2. http://schema.org/BlogPosting
  3. http://schema.org/Blog
  4. 我在下面的示例中获得了此代码,并且我想知道哪些缺少的项目或代码可以优化搜索引擎可以理解的简单博客文章。我想知道所有可用于博客帖子的丰富网页摘要。


    <div id="blog_post" itemscope="" itemtype="http://schema.org/BlogPosting">
                <h2 itemprop="name headline">Post Title</h2>
                <div class="byline">
                    Written by
                    <span itemprop="author" itemscope="" itemtype="http://schema.org/Person">
                        <span itemprop="name">
                            <a href="https://" itemprop="url" rel="author">Author</a>
                        </span>
                    </span>
                    on
                    <time datetime="2011-05-17T22:00" itemprop="datePublished">Tuesday May 17th 2013</time>
                </div>
                <div class="content" itemprop="articleBody">Content...</div>
    </div>
    

1 个答案:

答案 0 :(得分:13)

http://schema.org/Blog可以在首页上使用,您可以在其中找到几个博客帖子的列表(也可能是每个页面上的博客内容,例如博客名称)。

http://schema.org/BlogPosting代表一篇博文。

http://schema.org/Article仅为more general而非http://schema.org/BlogPosting(每BlogPostingArticle,但不是每Article都是BlogPosting })。如果您有一个典型的博客,则需要使用http://schema.org/BlogPosting