Adds conditional template for page list