【问题标题】:Adding pubsubhubbub link tag to Atom feed将 pubsubhubbub 链接标签添加到 Atom 提要
【发布时间】:2015-06-08 11:14:35
【问题描述】:

根据Google 的说法,包含指向 pubsubhubbub 集线器的 URL 的链接标记(这是一个非常糟糕的名称)需要像这样放在 Atom 条目元素下:

<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-GB" xmlns="http://www.w3.org/2005/Atom">
  <!-- ... -->
  <entry>
    <link rel="hub" href="https://pubsubhubbub.appspot.com/" />
    <!-- ... -->
  </entry>
</feed>

但是,我看到的所有实现和博客文章都将它添加到提要元素中,而不是像这样:

<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-GB" xmlns="http://www.w3.org/2005/Atom">
  <!-- ... -->
  <link rel="hub" href="https://pubsubhubbub.appspot.com/" />
  <entry>
    <!-- ... -->
  </entry>
</feed>

它的正确位置是什么?

【问题讨论】:

  • @JulienGenestoux 直接在首页:Add an //atom:link tag under //atom:entry for Atom feeds or under //rss:rss/channel for RSS feeds. The //atom:link tag should have rel attribute set to hub and href attribute set to https://pubsubhubbub.appspot.com/
  • @JulienGenestoux 推荐哪个集线器?

标签: publish-subscribe feed atom-feed websub


【解决方案1】:

它应该在提要级别:http://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.3.html#discovery(顺便说一句。相同的规范,Google 正在引用)。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2011-03-04
  • 1970-01-01
  • 1970-01-01
  • 2012-04-30
  • 2023-02-09
  • 1970-01-01
  • 2011-07-10
  • 2013-04-23
相关资源
最近更新 更多