Tender Layered Cake with Marmalade

Description
In Romanian: Tort fraged cu marmelada

Ingredients

 * 7 yolks,
 * 3/4 cup confectioner's sugar,
 * 3/4 oz/20 g ammonia powder,
 * 1/2 cup melted butter,
 * vanilla,
 * flour as needed to make dough,
 * marmelade to taste,
 * a few chopped walnuts or almonds,
 * 1 whole egg

Directions

 * 1) Beat the sugar with the butter until foamy.
 * 2) Add the yolks, one by one, ammonia powder, vanilla and flour at the end.
 * 3) Knead a soft dough and let rest for 20 minutes.
 * 4) Divide the dough in 3-4 equal parts and roll sheets about 1/2 inch thick.
 * 5) Place one sheet in the baking pan, spread a layer of marmelade on top, place a second sheet over the marmelade and spread this one with marmelade too.
 * 6) Do this with all sheets.
 * 7) Do not top the last sheet with marmelade.
 * 8) Instead, wash with a beaten egg and sprinkle with sliced walnuts or almonds.
 * 9) Bake for 30 minutes at medium heat.