Actually, you can make them either way. If you choose to fill them before baking, avoid overfilling the middles since the jam will melt in the oven. Otherwise, fill them once they have cooled a bit so you know exactly how much to add.