Whisk all-purpose flour and salt together in a small bowl.
Beat softened butter and granulated sugar in a large bowl on medium speed until fluffy.
Beat in egg yolk, vanilla extract, and almond extract until smooth.
Add flour mixture on low speed, mixing just until soft dough forms.
Roll dough into one-inch balls and place one inch apart on parchment-lined baking sheets.
Press thumb or index finger diagonally into center of each ball twice to form a heart-shaped indentation.
Stir raspberry jam with a spoon until smooth, then spoon half teaspoon of jam into each heart indentation.
Chill cookie sheets in the refrigerator for twenty minutes to help cookies keep their shape.
Preheat oven to 350 degrees Fahrenheit.
Bake for 13 to 15 minutes until cookie bottoms are lightly golden.
Cool completely on baking sheets, then dust lightly with powdered sugar before serving.