laktek/punch-blog — pull request #18 by bobholt (2013-07-11 13:56:42+00:00)
Title: allow for fewer posts than homepage_posts length

If a user (particularly with a new blog) has fewer posts than their desired homepage_posts length, this would not work right.

For example, I had 9 posts, but my homepage_posts was 10, so `recent_posts_list` ended up being `all_posts.slice( -1 )`, which is the last element in the array, i.e. the oldest post.