RSS 中的文章领先
What would be the most accepted way to include the lead (as in introductory section of a story) of an article in a RSS feed?
The rss spec does not seem to contemplate this. Maybe the subject element of Dublin Core?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您还包含了本文的全部内容。
这是我通常看到的使用方式
http://web.resource.org/rss/1.0/modules/content/< /a>
这是一个很好的使用示例。
http://feeds.feedburner.com/ommalik
基本上,您将领先的标准 RSS <说明>。然后通过使用内容命名空间,将完整的文章内容放入中。元素。
我还看到有人编了一个<总结>标签,但这是不正确的。
我见过的唯一的都柏林核心是
您还可以生成原子提要, https://www.rfc-editor.org/rfc/ rfc4287
I'm assuming you are also including the full content from the article.
This is the way I normally see it being used
http://web.resource.org/rss/1.0/modules/content/
Here's a good example of it in use.
http://feeds.feedburner.com/ommalik
Basically you put the lead in the standard RSS <description>. then by using the content namespace you put the full article content in the <content:encoded> element.
I've also seen someone make up a <summary> tag but that's not proper.
The only dublin core I ever see is <dc:creator>
You could also generate an atom feed, https://www.rfc-editor.org/rfc/rfc4287