Sha256: 7ca6f6c70d20a9904b8ea3ff5b99d38a006bfac6d1a978e85bb2e0f6ebaad909

Contents?: true

Size: 553 Bytes

Versions: 11

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

xml.instruct! :xml, version: "1.0"
xml.rss version: "2.0" do
  xml.channel do
    xml.title "My Blog"
    xml.description "My Blog Description"
    xml.link comfy_blog_posts_url(@cms_site.path)

    @blog_posts.each do |post|
      url = comfy_blog_post_url(@cms_site.path, post.year, post.month, post.slug)

      xml.item do
        xml.title post.title
        xml.description "blog post content"
        xml.pubDate post.published_at.to_s(:rfc822)
        xml.link url
        xml.guid url
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
PixelForce_FyBlog-0.0.2 app/views/comfy/blog/posts/index.rss.builder
PixelForce_FyBlog-0.0.1 app/views/comfy/blog/posts/index.rss.builder
PixelForce_ComfyBlog-0.0.1 app/views/comfy/blog/posts/index.rss.builder
EtsComfyBlog-0.0.4 app/views/comfy/blog/posts/index.rss.builder
EtsComfyBlog-0.0.3 app/views/comfy/blog/posts/index.rss.builder
EtsComfyBlog-0.0.2 app/views/comfy/blog/posts/index.rss.builder
EtsComfyBlog-0.0.1 app/views/comfy/blog/posts/index.rss.builder
ets_comfy_blog-0.0.1 app/views/comfy/blog/posts/index.rss.builder
kcy_comfy_blog-2.0.7 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-2.0.7 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-2.0.6 app/views/comfy/blog/posts/index.rss.builder