Various fixes

-fixed pagination on index
- fixed archive page
- fixed escape error in category list