Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
Fix pagination: Link to last page on first page
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorb committed Jul 23, 2012
1 parent bc2eca2 commit cb9f97b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions write.js
Expand Up @@ -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 = {
Expand Down

0 comments on commit cb9f97b

Please sign in to comment.