fixed the order of RSS items and posts on the archive page

This commit is contained in:
B Mathis
2009-11-11 17:06:42 -06:00
parent 50e218dd66
commit 0abf2cb980
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ title: Blog Archives
---
%h2 Blog Archives
- posts = site.posts.group_by { |p| p.date.strftime("%Y") }
- posts = site.posts.reverse.group_by { |p| p.date.strftime("%Y") }
- posts.keys.each do |year|
%h3= year
%ul