Avoid panic when pagination on 0 pages
authorbep <bjorn.erik.pedersen@gmail.com>
Thu, 5 Mar 2015 23:30:51 +0000 (00:30 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Thu, 5 Mar 2015 23:48:33 +0000 (00:48 +0100)
commit3343cacc0e5a94ca50537cb5612b5549be2d9ca0
tree7bb57a1dde991052f451ef58d69c651ca17c179e
parent6e1b0e0c00ced52979b8629161e36e45d51a47e6
Avoid panic when pagination on 0 pages

Fixes #948
hugolib/pagination.go
hugolib/pagination_test.go