Tuesday, March 07, 2006

RSS/Atom and Blogger

I am surprised how few people use RSS instead of visiting the site. I find that RSS is much easier to work with. Some of it may be, that until today the autodiscovery meta-tags on this blog were set to the default blogger generated feed. I have changed them to a feedburner version. Since there is no convenient option to do this, I expect a few of you might be interested in how it is done. There is a little info in this thread on the feedburner forums, but the basic trick goes as follows:

  1. Open your blog in a web browser and view the source code. This can usually be done by right clicking an empty spot on the page
  2. Select and copy the first few lines (control+c), starting at the title tag (</title> and ending before the <style type="text/css"> tag. My code looks like the following (after I adjusted it):
<meta  http-equiv="Content-Type" content="text/html; charset=UTF-8"  />
<
meta name="MSSmartTagsPreventParsing" content= "true" />
<
meta name="generator" content="Blogger" />
<
link rel= "alternate" type="application/atom+xml" t
itle
="Ben's Computer Tidbits" href="http://feeds.feedburner.com/FeedName" / >
<
link rel="service.post" type= "application/atom+xml"
title="Ben's Computer Tidbits" href= "http://feeds.feedburner.com/FeedName" />
<
link rel ="EditURI" type="application/rsd+xml"
title= "RSD" href="http://www.blogger.com/rsd.g?blogID=19227845" />
<
link rel="alternate" type= "application/rss+xml"
title
="RSS" href=" http://feeds.feedburner.com/FeedName" />

  1. Open up your blogger template and replace the <$BlogMetaData$> tag with the code you copied to the clipboard
  2. Change all the links in the pasted code (they start with href="http://") to your feedburner feed
  3. Add a line looking like this, right after the pasted code (and adjust the links): <link rel="alternate" type="application/rss+xml" title="RSS" href=" http://feeds.feedburner.com/MyFeed" />
  4. Your code should be similar to mine above. Make sure you didn't break anything, using the preview button. If all looks ok, republish your blog, and try it out.


Edit1: I made the font size of the code "tiny" to reduce problems. I also added extra lines. The code should still be accurate, but It may not be. Best to follow directions and copy/paste your own.

No comments: