This Portuguese-style salt cod bake pairs tender fish with potatoes, soft onions and black olives. Allow time to desalt the fish before cooking.
Rinse the cod to remove surface salt. Submerge in plenty of cold water, cover and refrigerate at 4°C (40°F) or below for 24 to 48 hours, changing the water every 6 to 8 hours. Thick pieces can take longer; follow package guidance. Drain and discard the soaking water.
Heat the oven to 190°C (170°C fan). Peel and cut the potatoes into 1 cm slices. Simmer in water for 10 to 12 minutes until just tender, then drain. Slice the onions. Cook them in 40 ml olive oil over medium-low heat for 10 minutes; add the garlic and bay leaf and cook 2 minutes more.
Remove any bones from the drained cod and cut it into portions. Layer the potatoes and onions in a baking dish. Place the cod on top and scatter over the olives and pepper. Drizzle with the remaining 40 ml oil. Do not add salt until you have tasted the cooked dish.
Cover with foil and bake for 20 minutes. Uncover and bake another 10 to 15 minutes, until the thickest part of the fish reaches 63°C (145°F) and flakes easily. Thick pieces may need longer. Remove the bay leaf and finish with parsley.
Refrigerate leftovers within 2 hours at 4°C (40°F) or below. Eat within 3 days and reheat thoroughly to 74°C (165°F).
Patient desalting and gentle baking give this cod dish its balanced flavor and tender texture.