templates/show_feed.xml.erb in weneedfeed-0.2.0 vs templates/show_feed.xml.erb in weneedfeed-0.3.0
- old
+ new
@@ -1,19 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
- <description></description>
+ <title><![CDATA[<%= @page.title %>]]></title>
<link><%= "#{request.base_url}#{request.path}" %></link>
<atom:link href="<%= "#{request.base_url}#{request.path}" %>" rel="self"/>
- <title><%= @page.title %></title>
+ <description><![CDATA[Recent content on <%= @page.title %>]]></description>
<lastBuildDate><%= Time.now.rfc822 %></lastBuildDate>
<% items.each do |item| %>
<item>
<title><![CDATA[<%= item.title %>]]></title>
<link><%= item.link %></link>
<pubDate><%= item.time.rfc822 %></pubDate>
+ <description><![CDATA[<%= item.description %>]]></description>
<content:encoded><![CDATA[<%= item.description %>]]></content:encoded>
<guid isPermaLink="true"><%= item.link %></guid>
</item>
<% end %>
</channel>