Sha256: cf76b7bf61d173e3f85f6fdfe710d20d86d6c38347b14bf18d99a030b08d16d0

Contents?: true

Size: 407 Bytes

Versions: 39

Compression:

Stored size: 407 Bytes

Contents

atom_feed(:language => I18n.locale.to_s) do |feed|
  feed.title Setting.first.blog_name || t('blog.itself')
  feed.updated @posts.maximum(:updated_at)
  
  @posts.each do |post|
    feed.entry post, published: post.published_at do |entry|
      entry.title post.title
      entry.content post.body, type: 'html'
      entry.author do |author|
        author.name post.author.name
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
tkh_content-0.10.10 app/views/blog/index.atom.builder
tkh_content-0.10.9 app/views/blog/index.atom.builder
tkh_content-0.10.8 app/views/blog/index.atom.builder
tkh_content-0.10.7 app/views/blog/index.atom.builder
tkh_content-0.10.6 app/views/blog/index.atom.builder
tkh_content-0.10.5.1 app/views/blog/index.atom.builder
tkh_content-0.10.5 app/views/blog/index.atom.builder
tkh_content-0.10.4 app/views/blog/index.atom.builder
tkh_content-0.10.3 app/views/blog/index.atom.builder
tkh_content-0.10.2 app/views/blog/index.atom.builder
tkh_content-0.10.1 app/views/blog/index.atom.builder
tkh_content-0.10 app/views/blog/index.atom.builder
tkh_content-0.9.20 app/views/blog/index.atom.builder
tkh_content-0.9.19 app/views/blog/index.atom.builder
tkh_content-0.9.18 app/views/blog/index.atom.builder
tkh_content-0.9.17 app/views/blog/index.atom.builder
tkh_content-0.9.16 app/views/blog/index.atom.builder
tkh_content-0.9.15 app/views/blog/index.atom.builder
tkh_content-0.9.14 app/views/blog/index.atom.builder
tkh_content-0.9.13 app/views/blog/index.atom.builder