combine shared templates onto the index template