In a large bowl, combine the flour, ground almonds or hazelnuts, sugar, cinnamon, cloves, lemon zest, and salt.
Using your fingertips or a pastry cutter, work the butter into the flour mixture until it resembles coarse crumbs.
If necessary, gently knead it a few times until no dry flour remains.
Chilling makes the dough easier to handle and helps prevent excessive spreading during baking.
Preheat the oven to 175°C (350°F).
Grease a 23 cm (9-inch) tart or springform pan.
Take approximately two-thirds of the chilled dough and roll it between sheets of parchment paper until it is approximately 5–6 mm thick.
Stir the raspberry or redcurrant jam until smooth.
Spread the jam evenly over the pastry base, leaving a small border around the edge.
Arrange the strips diagonally across the jam, then place another set of strips in the opposite direction to create a classic lattice pattern.
Press the edges gently to secure the strips.
Slice into wedges and serve with coffee, tea, whipped cream, or simply enjoy it on its own.