Note to self: links in Atom feeds
There are two ways to refer to a resource in an Atom feed.
- If you are in a Person construct, use the
- Everywhere else, use the Link construct’s
So for example if you are using Rails'
author blocks should look like:
entry.author do |author| author.name 'Andy Stewart' author.uri 'http://airbladesoftware.com' end
The helper will generate
<link/> elements whenever you use the
You can validate your Atom feeds with the Feed Validator. Your feed needs to be publicly available to use the web version of the validator. Alternatively you can run the validator locally if you have Python.