Blend the flour, butter and icing sugar in a food processor until the mix resembles breadcrumbs. Add the egg yolks and a pinch of salt. Blend again until the ingredients form a dough ball. This will give you enough pastry for 2 tarts. Wrap in clingfilm and refrigerate for an hour.
Roll out the dough and drape over a 30cm tart case, using your fingertips to press it into shape. Trim the edges, leaving 1cm overhang to accommodate shrinkage. Keep any leftover pastry in the fridge.
Refrigerate the pastry shell for half an hour to an hour. In an oven preheated to 170C fan/gas 5, parbake the shell for 15 min. No need to use baking beans.
Blend the hazelnuts and flour in a food processor, then remove. Blitz the butter and sugar for a couple of minutes to combine. Then add the eggs, one at a time. Don't worry if the mixture splits. Add the hazelnut mix and blend to combine.
Spread the jam onto the tart shell. Then heat the hazelnut frangipane and, using a spatula, spread it on top of the jam.
Bake at 170C fan/gas 5 for 40-50 min.
Once cool, remove the tart from the tin. Scatter over the raspberries and dust with icing sugar. Serve with crème fraîche or whipped cream.