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