Posts 结构化数据:作者 URL 被“noindex”阻止

在每个帖子的结构化数据中,都有一个指向作者页面的 URL:

<div id="post_123" itemscope="" itemtype="http://schema.org/DiscussionForumPosting" class="topic-body crawler-post">
  <div class="crawler-post-meta">
    [...]
    <span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <a itemprop="url" href="https://meta.discourse.org/u/codinghorror">
        <span itemprop="name">codinghorror</span>
      </a>
      (Jeff Atwood)
    </span>

这些作者页面被 noindex 的 http 标头阻止。Google 希望所有结构化数据都可访问 - 请参阅 General Structured Data Guidelines | Google Search Central  |  Documentation  |  Google for Developers


Google 推荐作者 URL - 请参阅 Learn About Article Schema Markup | Google Search Central  |  Documentation  |  Google for Developers


Discourse 是否应该隐藏作者的 URL?

隐藏 URL 可以通过使用 itemid 属性将同一作者的所有帖子链接到同一个作者对象,而不设置任何 URL 来实现。

当前状态:

<span class="creator"
      itemprop="author" itemscope="" itemtype="http://schema.org/Person">
  <a itemprop="url" href="https://meta.discourse.org/u/codinghorror">
    <span itemprop="name">codinghorror</span>
  </a>
  (Jeff Atwood)
</span>

移除 url 属性并添加 itemid 属性的 identifier - 另外设置 rel="nofollow"

<span class="creator"
      itemid="https://meta.discourse.org/u/codinghorror"
      itemprop="author" itemscope="" itemtype="http://schema.org/Person">
  <a rel="nofollow" href="https://meta.discourse.org/u/codinghorror">
    <span itemprop="name">codinghorror</span>
  </a>
  (Jeff Atwood)
</span>

1 个赞