getting the browser to detect rss and atom feeds
Aug
17
1
0
When writing sections that has periodic updates, like a blog, it's commonly requested to create an rss or an atom syndication feed for the section.
I develop with Django, and fortunately it comes with a great and easy to use syndication feed framework out-of-the-box to automate much of this process. However, the documentation doesn't talk about how to get browsers to automatically detect that a feed is available so that the syndication feed icon automatically shows up in the user's browser.
The technical term for this is "autodiscovery", and not surprisingly it's easy to implement.
All that needs to be done is to add something similar to this into the <head> of your HTML page for RSS:
<link href="http://www.example.com/blog.rss" rel="alternate" type="application/rss+xml" title="<title>"/>
or for ATOM:
<link href="http://www.example.com/blog.atom" rel="alternate" type="application/atom+xml" title="<title>"/>