added pagination logic and post previews across the whole blog