Browse files

Fix pagination: Link to last page on first page

  • Loading branch information...
1 parent bc2eca2 commit cb9f97b84cdd3e5adf6dc494041cf00ed7509bb2 @pvorb committed Jul 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 write.js
View
4 write.js
@@ -129,9 +129,9 @@ function indexes(reg, conf, cb) {
if (i < pages.length - 1) {
if (i < pages.length - 2)
pag.last = {
- page: pages.length - 1,
+ page: pages.length,
file: index.path.pattern.replace(/{{page}}/g,
- pages.length - 1)
+ pages.length)
};
pag.next = {

0 comments on commit cb9f97b

Please sign in to comment.