How To Tell Web Browsers About Atom Feeds

寵の児 提交于 2019-12-03 10:07:38

While the code provided in (all!) the other answers is absolutely correct, I would recommend against giving your feed a title of "RSS" if the format used is actually Atom. RSS, of course, refers to an entirely separate format for feeds and syndication and there's enough confusion among the general population about what the differences are that I wouldn't suggest feeding the fire. :-)

Instead, give your feed a more descriptive title (such as "News feed", "Blog feed", "Comics", etc.) based on your content. Also, it is absolutely possible for you to include multiple feed links in the same page, if you have more than one type of content!

<link rel="alternate" type="application/atom+xml" title="News" href="/atom.xml?type=news" />
<link rel="alternate" type="application/atom+xml" title="Blog" href="/atom.xml?type=blog" />
<link rel="alternate" type="application/atom+xml" title="Comics" href="/atom.xml?type=comics" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!