diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/archives.haml | 2 | ||||
-rw-r--r-- | source/atom.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/archives.haml b/source/archives.haml index 5d78d942..4daba19c 100644 --- a/source/archives.haml +++ b/source/archives.haml @@ -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 diff --git a/source/atom.haml b/source/atom.haml index a3999a3d..07ec21f9 100644 --- a/source/atom.haml +++ b/source/atom.haml @@ -15,7 +15,7 @@ full_url: http://yoursite.com %author %name= page.author %email= page.email - - site.posts[0..14].each do |post| + - site.posts.reverse[0..14].each do |post| %entry %title= rp(post.title) %link(href="#{page.full_url}#{post.url}") |