about summary refs log tree commit diff stats
path: root/app/views/blogs/index.atom.builder
blob: e74ef3c13f99aac6c86e7fc6080b805477f30052 (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) do |entry|
      entry.title(blog.title)
      entry.content(markdown(blog.body), type: 'html')

      entry.author do |author|
        author.name("hatkirby")
      end
    end
  end
end