nakkaya/static — pull request #23 by hlatki (2014-01-11 02:41:50+00:00)
Title: Fix potentially invalid pager link

If a blog has exactly :posts-per-page posts (2 in the default configuration), the pager will still create an "Older Entries" link to latest-posts/-1/.

This patch just changes the pager condition from (< count-total posts-per-page) to (<= count-total posts-per-page) in order to prevent this from happening.