Sha256: b5285c7cf12b11fbfb023894c71d6ca46276ce6738d37089ee657841c8b960b2
Contents?: true
Size: 1.16 KB
Versions: 18
Compression:
Stored size: 1.16 KB
Contents
--- layout: false path: 'rss.xml' <?xml version="1.0"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title><%= site.meta.title %></title> <link><%= site.url %></link> <description><%= site.meta.description %></description> <language>en-us</language> <% if posts.size > 0 %> <pubDate><%= posts.last.date.rfc2822 %></pubDate> <lastBuildDate><%= posts.last.date.rfc2822 %></lastBuildDate> <% end %> <generator>Plate <%= Plate::VERSION %></generator> <managingEditor><%= site.meta.email %><%= " (#{site.meta.author})" if site.meta.author %></managingEditor> <atom:link href="<%= self.url %>" rel="self" type="application/rss+xml" /> <% posts.last(10).each do |post| %> <item> <title><%= xml_escape(post.title) %></title> <link><%= post.url %></link> <description><%= xml_escape(absolutize_paths(post.rendered_body)) %></description> <pubDate><%= post.date.rfc2822 %></pubDate> <guid><%= post.url %></guid> <% if post.category %> <category><%= post.category %></category> <% end %> </item> <% end %> </channel> </rss>
Version data entries
18 entries across 18 versions & 1 rubygems