Sha256: da36387b7414a864a56f253877507357ac9046dac5d125762740256140e818a1

Contents?: true

Size: 731 Bytes

Versions: 7

Compression:

Stored size: 731 Bytes

Contents

xml.instruct!
xml.rss "version" => "2.0", "xmlns:dc" => "htt://purl.org/dc/elements/1.1/" do
  xml.channel do

    xml.title blogit_conf.rss_feed_title

    xml.description blogit_conf.rss_feed_description

    xml.pubDate CGI.rfc1123_date @posts.first.try(:updated_at)

    xml.link blog_root_url

    xml.lastBuildDate CGI.rfc1123_date @posts.first.try(:updated_at)

    xml.language I18n.locale

    @posts.each do |post|

      xml.item do
        xml.title post.title
        xml.description format_content(post.short_body).html_safe
        xml.link post_url(post)
        xml.pubDate CGI.rfc1123_date(post.updated_at)
        xml.guid post_url(post)
        xml.author post.blogger_display_name
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
blogit-1.1.2 app/views/blogit/posts/index.rss.builder
blogit-admin-0.0.1 app/views/blogit/admin/posts/index.rss.builder
blogit-1.1.1 app/views/blogit/posts/index.rss.builder
blogit-1.1.0 app/views/blogit/posts/index.rss.builder
blogit-1.0.0 app/views/blogit/posts/index.rss.builder
blogit-1.0.0.rc1 app/views/blogit/posts/index.rss.builder
blogit-0.8.0 app/views/blogit/posts/index.rss.builder