about summary refs log tree commit diff stats
path: root/app/views/blogs/index.atom.builder
blob: 72deba2d084df28fc5ce3d6281a7655d79f26c06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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, 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