【发布时间】: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