Pre-heat the oven to 200°C/Gas Mark 6
To make the pastry, combine the flours, salt and butter in a food processor and whizz until the mixture resembles breadcrumbs. Add the egg and pulse until the dough comes together (you may need to add a tiny splash of water depending on the size of your egg). Roll out the dough and line a 20cm loose bottomed cake tin. Chill whilst you make the filling. Don't worry if it crumbles a bit just fill the gaps with some leftover pastry.
Boil the potatoes for 10-15 minutes until just tender and not falling apart, then drain really well.
In a seperate pan cook down the onions for 5 minutes or so then add the leeks to the pan and cook for a further 10 minutes add the garlic for the last couple of minutes. Stir in the spinach and cream and let the spinach wilt.
In a large bowl combine the potatoes with the spinach mixture, add the thyme, parsley and 100g of the cheddar. Season with salt & pepper.
Spoon the filling into the chilled pastry case, sprinkle the remaining cheese on top. Bake in the oven for 40-45 minutes or until the pastry is golden brown and the cheese nicely melted with a few charred bits!
Cool in the tin for 10 minutes then release the pie from the tin. Serve with a nice crisp green salad.