Make index template

r? @zaach