Preheat the oven to 180C,160C fan and grease and line a 2lb loaf tin (mine was 19cm x 12 cm x 9 cm).
In a large bowl with an electric hand whisk, or using a stand mixer, beat together the butter, sugar and finely grated zest of an orange and a lemon until light and fluffy. Add the eggs, one at a time, beating between each addition before adding the next. If your mix looks like it might curdle at any point a good trick is to add in a few spoonfuls of the flour before adding in the next egg.
Sift over the flour, ground almonds, baking powder, xanthan gum, cinnamon, ginger and salt. Fold the dry ingredients into the wet, followed by the yogurt, cranberries and pecans.
Spoon the batter into your prepared tin and smooth out the top. Bake for 1 hour 5 minutes - 1 hour 15 minutes (check at the 1 hour 5 mark), or until golden on top, springy to the touch and an inserted skewer comes out clean.
Once baked, remove from the oven and let cool in the tin for 10 minutes. Remove the cake from the tin and place on a cooling rack. Brush the orange marmalade over the top of the cake and leave to cool completely.