Sha256: f49b60f5267cebdb0dc6b41fc481d273e8eb149bf74ea1329315c5d530613d55

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 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 comfy_blog_posts_url(@cms_site.path, @blog.path)
    
    @posts.each do |post|
      url = comfy_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

4 entries across 4 versions & 1 rubygems

Version Path
comfy_blog-1.12.3 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-1.12.2 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-1.12.1 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-1.12.0 app/views/comfy/blog/posts/index.rss.builder