Skip to content

Commit

Permalink
only show last 10 articles in the feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Mar 11, 2010
1 parent a959d9a commit 40b1f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/feed.builder
Expand Up @@ -5,7 +5,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.updated articles.first[:date].iso8601 unless articles.empty?
xml.author { xml.name @config[:author] }

articles.each do |article|
articles.reverse[0...10].each do |article|
xml.entry do
xml.title article.title
xml.link "rel" => "alternate", "href" => article.url
Expand Down

0 comments on commit 40b1f66

Please sign in to comment.