atom_feed do |feed| feed.title("Four Island") feed.updated(@blogs[0].published_at) if @blogs.length > 0 @blogs.each do |blog| feed.entry(blog) do |entry| entry.title(blog.title) entry.content(markdown(blog.body), type: 'html') entry.author do |author| author.name("hatkirby") end end end end