Pass page number to index template