Fix pagination URLs.

Pagination only worked if URLs were in the format of {slug}.html. So
I had to add a check for category, tag, or author. This modification
is rather specific to my particular configuration.