Build index template