Fix pagination navigation while searching

Pagination wasn't taking into account "found" variable while assembling the navigation links when the current mode was "search".
Merge pull request #9 from trein/patch-1

Fix pagination navigation while searching