2012-07-01 01:42:53 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<% coder = HTMLEntities.new %>
|
|
|
|
<rss version="2.0">
|
|
|
|
<channel>
|
|
|
|
<title>lobste.rs<%= @page_title ? ": " + h(@page_title) : "" %></title>
|
|
|
|
<description><%= @page_title %></description>
|
2012-07-01 20:31:31 +02:00
|
|
|
<link><%= root_url + (@newest ? "newest" : "") %></link>
|
2012-07-01 01:42:53 +02:00
|
|
|
|
|
|
|
<% @stories.each do |story| %>
|
|
|
|
<item>
|
|
|
|
<title><%= raw coder.encode(story.title, :decimal) %></title>
|
2012-07-03 19:19:55 +02:00
|
|
|
<link><%= story.url_or_comments_url %></link>
|
|
|
|
<guid><%= story.short_id_url %></guid>
|
2012-07-01 01:42:53 +02:00
|
|
|
<author><%= story.user.username %></author>
|
|
|
|
<pubDate><%= story.created_at.rfc2822 %></pubDate>
|
2012-07-03 19:19:55 +02:00
|
|
|
<comments><%= story.comments_url %></comments>
|
2012-07-05 17:08:14 +02:00
|
|
|
<% if story.markeddown_description.present? %>
|
|
|
|
<description><%= raw coder.encode(story.markeddown_description,
|
|
|
|
:decimal) %></description>
|
2012-07-05 16:43:33 +02:00
|
|
|
<% end %>
|
2012-07-02 19:19:26 +02:00
|
|
|
<% story.taggings.each do |tagging| %>
|
|
|
|
<category><%= tagging.tag.tag %></category>
|
2012-07-01 01:42:53 +02:00
|
|
|
<% end %>
|
|
|
|
</item>
|
|
|
|
<% end %>
|
|
|
|
</channel>
|
|
|
|
</rss>
|