Sha256: 7a9979edc73cae6ee605876c1eb745dc9cd7b2f5edb379bd57193b5dbc245a1e
Contents?: true
Size: 1.52 KB
Versions: 9
Compression:
Stored size: 1.52 KB
Contents
xm.entry do xm.author do name = item.user.name rescue item.author email = item.user.email rescue nil xm.name name xm.email email if this_blog.link_to_author unless email.blank? end xm.id "urn:uuid:#{item.guid}" xm.published item.published_at.xmlschema xm.updated item.updated_at.xmlschema xm.title post_title(item), "type"=>"html" xm.link "rel" => "alternate", "type" => "text/html", "href" => post_link(item) item.categories.each do |category| xm.category "term" => category.permalink, "label" => category.name, "scheme" => (url_for :controller => "articles", :action => "category", :id => category.permalink, :only_path => false) end item.tags.each do |tag| xm.category "term" => tag.display_name, "scheme" => (url_for :controller => "articles", :action => "tag", :id => tag.name, :only_path => false) end item.resources.each do |resource| if resource.size > 0 # The Atom spec disallows files with size=0 xm.link "rel" => "enclosure", :type => resource.mime, :title => item.title, :href => server_url_for(:controller => "files", :action => resource.filename), :length => resource.size else xm.link "rel" => "enclosure", :type => resource.mime, :title => item.title, :href => server_url_for(:controller => "files", :action => resource.filename) end end xm.summary item.body_html, "type"=>"html" xm.content item.full_html, "type"=>"html" if this_blog.show_extended_on_rss end
Version data entries
9 entries across 9 versions & 1 rubygems