Sha256: b091b2bfca8d41f9d4ec186ff932132d28fbcd538dfcf04bd08af14c6a7107e6

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title (@blog.title) ? @blog.title : "Unnamed Blog"
    xml.description (@blog.description) ? @blog.description : ""
    xml.link posts_url

    for post in @posts
      xml.item do
        xml.title post.title
        xml.description @kramdown_parser.kramdown_to_html(post.body).html_safe
        xml.pubDate post.written_at.to_s(:rfc822)
        xml.link post_url(post.slug)
        xml.guid post_url(post.slug)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
almanac-0.9.2 app/views/almanac/posts/index.rss.builder
almanac-0.9.1 app/views/almanac/posts/index.rss.builder