about summary refs log blame commit diff stats
path: root/app/views/blogs/index.atom.builder
blob: a05f29d96a730a767065b511cc174ecccfb34a79 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
 
                                 
                                                             
                             
                                                      




                               
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