# HG changeset patch # User Matthew Wild # Date 1259890008 0 # Node ID f5afa9d3d3c55796ff3d914a4928fab45583d5e2 # Parent e784e417a3e211f08de06754c95bb65aeb6e3c06 build.lua: Write the latest 10 entries to the feed, not the earliest 10 entries :) diff -r e784e417a3e2 -r f5afa9d3d3c5 build.lua --- a/build.lua Mon Jul 20 23:49:43 2009 +0100 +++ b/build.lua Fri Dec 04 01:26:48 2009 +0000 @@ -166,8 +166,8 @@ atom:write("\t", os.date "!%Y-%m-%dT%H:%M:%SZ", "\n"); -for n, post in ipairs(posts) do - if n > 10 then break; end +for n = #posts,#posts-10,-1 do + local post = posts[n]; if post.published then atom:write("\n"); atom:write("\t\n\t\t", post.author or default_author or "Unknown Author", "\n\t\n");