Add preliminary pagination support for category pages.