File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/views/refinery/blog/posts Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11xml . instruct! :xml , :version => "1.0"
2- xml . rss : version => "2.0" do
2+ xml . rss version : "2.0" , 'xmlns:atom' : 'http://www.w3.org/2005/Atom' , 'xmlns:media' : 'http://search.yahoo.com/mrss/' do
33 xml . channel do
44 xml . title Refinery ::Core . site_name
55 xml . description Refinery ::Core . site_name + " Blog Posts"
66 xml . link refinery . blog_root_url
7+ xml . tag! 'atom:link' , href : refinery . blog_rss_feed_url , rel : 'self' , type : 'application/rss+xml'
78
89 @posts . each do |post |
910 xml . item do
1011 xml . title post . title
11- xml . description post . body
12+ xml . description blog_post_teaser ( post )
13+ xml . category post . categories . map { |x | x . title } . join ( '/' ) if post . categories . length > 0
1214 xml . pubDate post . published_at . to_s ( :rfc822 )
1315 xml . link refinery . blog_post_url ( post )
16+ xml . guid refinery . blog_post_url ( post )
17+ post . images . each do |image |
18+ xml . media :content , url : refinery . root_url + image . url , medium : 'image'
19+ end if post . respond_to? ( :images )
1420 end
1521 end
1622 end
You can’t perform that action at this time.
0 commit comments