Preheat the oven to 350ºF (180°C).
Butter or spray a 9x5 inch loaf pan or a 9-inch (24cm) springform pan.
You can line it with a strip of parchment paper, covering the pan's bottom and two long sides. The two short sides will remain unlined but greased. This will help you remove the cake from the pan.
In a food processor, pulse the toasted hazelnuts with 2 tablespoons of granulated sugar until finely ground. Take care not to over-grind the hazelnuts to the point where they start to release oil (if you keep on, it will eventually become nut butter), or the cake will be oily and heavy. Set the nut mixture aside.
Cream the soft butter in a large mixing bowl with an electric mixer or a stand mixer with the paddle attachment, add the remaining granulated and brown sugars, and cream the mixture until it is pale and fluffy, about 3 minutes.
Add the eggs, one at a time, beating well after each addition, and scraping the sides of the bowl a few times. Don't worry if the mixture looks separated or curdled; it will come together when you add the flour.
Beat in the vanilla.
Sift the flour, baking powder and salt together.
Add the nuts and mix well to combine.
Add this to the butter in three additions, alternating with the sour cream in two additions, beginning and ending with flour.
Mix *just* until incorporated. Do not over mix.
Add the hazelnut liqueur or the oil and mix well with a spatula.
Scrape the batter into the prepared pan and even out the top.
Bake for 45-50 minutes, or until a cake tester or toothpick inserted in the center comes out clean. It should spring back if you lightly touch it.
Transfer to a wire rack and let cool for 20 minutes or so.
Run a smooth-bladed knife around the pan's edge to ensure the cake is not sticking. Remove the cake by lifting the ends of the parchment paper if used.
Remove the strip of paper and let the cake cool completely on a cooling rack.
This cake tastes better the second day and lasts up to 5 days, well covered in plastic wrap, foil, or in an airtight container.