Add base template and modify index to inherit from it.