Mix flour, cocoa, baking powder, soda, and salt. In a separate bowl, cream butter and sugar on medium until light and fluffy. Reduce speed to low and add vanilla and egg. Add milk and flour mixture alternately while still mixing. Mix in jam and liqueur. Pour into lined cupcake pan. Bake at 350 for 20 minutes, or until toothpick comes out almost clean.