Sha256: 9fbd6474ddaccd4fa9c4075052c7056b8ee67418e9e431a96cddaaf02956448f

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

xml.instruct! :xml, version: "1.0"
xml.rss version: "2.0" do
  xml.channel do
    xml.title Monologue::Config.site_name
    xml.description Monologue::Config.meta_description
    xml.link root_url

    for post in @posts
      xml.item do
        xml.title post.title
        xml.description raw(post.content)
        xml.pubDate post.published_at.to_s(:rfc822)
        xml.link Monologue::Config.site_url + post.full_url
        xml.guid Monologue::Config.site_url + post.full_url
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
monologue-0.5.0 app/views/monologue/posts/feed.rss.builder
monologue-0.4.1 app/views/monologue/posts/feed.rss.builder
monologue-0.4.0 app/views/monologue/posts/feed.rss.builder