Skip to content

Commit

Permalink
added French tartiflette from Émeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mskec committed Jul 11, 2024
1 parent 87d8075 commit ba75a60
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
Binary file added public/illustrations/french-tartiflette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions recipe_compiler/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def parse_to_recipe(content: str) -> Recipe:
cover_img = recipe_metadata["cover_img"] if "cover_img" in recipe_metadata else (category.value.lower() + ".png")
# print(recipe_name, cover_img)

style_block = None
css_html_background = recipe_metadata["css_html_background"] if "css_html_background" in recipe_metadata else None
if css_html_background:
style_block = f"<style>html {{ background: #{css_html_background}; }}</style>"

return Recipe(
name=recipe_metadata["name"],
residence=recipe_metadata["residence"],
Expand All @@ -137,4 +142,5 @@ def parse_to_recipe(content: str) -> Recipe:
quote=recipe_metadata["quote"] if "quote" in recipe_metadata else "",
ingredients="\n".join(ingredients),
instructions="\n".join(instructions),
style_block=style_block
)
1 change: 1 addition & 0 deletions recipe_compiler/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Recipe:
category: RecipeCategory
recipe_name: str
cover_img: str
style_block: str
quote: str
ingredients: str
instructions: str
Expand Down
1 change: 1 addition & 0 deletions recipe_compiler/templates/recipe.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ <h2>Instructions</h2>
</div>
</div>
</section>
{{ recipe.style_block | safe }}
{% endblock content %}
41 changes: 41 additions & 0 deletions recipes/french-tartiflette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Émeline
residence: The Alps, France
category: entree
cover_img: french-tartiflette.png
css_html_background: fcfbf5
---

# Tartiflette

## Ingredients
* 1 well-made reblochon > 250g
* when you press on the side of the reblochon, your finger should sink in a little
* 200g onion
* 200g smoked bacon
* 1kg of potato
* 1 clove of garlic
* 2 Tbsp of olive oil
* Pepper
* Salt

## Instructions
### Preparation
* Chop onions
* Cut bacon in smaller pieces
* Peel & cut potatoes, wash & rinse them well and dry them in a clean cloth
* Cut reblochon crust and separate them from the "heart". Cut the heart into cubes

### Cooking
* Add the olive oil a frying pan
* Sauté onions for 5-10min
* In another frying pan
* Brown the bacon to melt the fat
* Remove excess fat with a paper towel
* Add potatoes to the first pan and brown them
* When they are golden, add the bacon from the other pan
* Preheat the oven to 200°C (thermostat 6-7)
* Prepare a gratin dish by rubbing the bottom and sides with the peeled garlic clove
* In the gratin dish, spread the potatoes with bacon and onions, add the reblochon cubes and place the crusts on top
* Bake for about 20 minutes
* Bon Appétit

0 comments on commit ba75a60

Please sign in to comment.