includes Liquid snippet to handle pagination