Rename Foundation index to template and add custom index