Sha256: 48a974678055c9870d2dfc9f242ed5943c02422edb01d0c70a163a03fe14d5e7

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

xml.instruct! :xml, :version => '1.0'
xml.rss :version => '2.0' do
  xml.channel do
    xml.title @blog.label
    xml.description @blog.description
    xml.link blog_posts_url(@cms_site.path, @blog.path)
    
    @posts.each do |post|
      url = blog_post_url(@cms_site.path, @blog.path, post.slug)
      
      xml.item do
        xml.title post.title
        xml.description post.content
        xml.pubDate post.created_at.to_s(:rfc822)
        xml.link url
        xml.guid url
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-1.1.1 app/views/blog/posts/index.rss.builder
comfy_blog-1.1.0 app/views/blog/posts/index.rss.builder
comfy_blog-1.0.0 app/views/blog/posts/index.rss.builder