Sha256: b058baea8114c650122e20d6f1931e1757a556e76007e0c4512ca834eea887b2
Contents?: true
Size: 797 Bytes
Versions: 10
Compression:
Stored size: 797 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 root_url xml.lastBuildDate CGI.rfc1123_date @posts.first.try(:updated_at) xml.language blogit_conf.rss_feed_language @posts.each do |post| xml.item do xml.title post.title xml.description format_content(truncate(post.body, length: 400)).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
10 entries across 10 versions & 1 rubygems