The following snippet will let you have pagination in your website.

Snippet Source/Credit: Smashing Magazine