Skip to content

Commit

Permalink
Update, although some recipe files are still blank
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansolomon1678 committed Jul 21, 2022
1 parent c9fdef9 commit 27472f7
Show file tree
Hide file tree
Showing 14 changed files with 268 additions and 4 deletions.
39 changes: 39 additions & 0 deletions food/Brussel_sprouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!Doctype HTML>
<html>
<head>
<link rel="stylesheet" href="../recipe.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"/>
<meta name="author" content="Nathan Solomon">
<title>Brussel sprouts</title>
</head>
<!-- The following HTML is taken from https://morotsman.github.io/blog,/google/analytics,/jekyll,/github/pages/2020/07/07/add-google-analytics.html -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-206139197-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-206139197-1');
</script>
<body>
<div id="main">
<h1>Brussel sprouts</h1><hr>

<p><strong>Source:</strong> based on <a href=https://www.cookinglight.com/recipes/roasted-brussels-sprouts-with-mustard-dressing>https://www.cookinglight.com/recipes/roasted-brussels-sprouts-with-mustard-dressing</a></p>

<p><strong>Serving size:</strong> </p>


<hr><h2>Ingredients</h2>
<ul>
</ul>

<hr><h2>Instructions</h2>
<p></p>

<h2>Serving suggestion</h2><hr>
<p></p>
</div>
</body>
</html>
10 changes: 10 additions & 0 deletions food/Brussel_sprouts/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Source": "https://www.cookinglight.com/recipes/roasted-brussels-sprouts-with-mustard-dressing",
"Serving size": "",
"Pictures": {
},
"Ingredients": [
],
"Instructions": "",
"Serving suggestion": ""
}
39 changes: 39 additions & 0 deletions food/French_toast/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!Doctype HTML>
<html>
<head>
<link rel="stylesheet" href="../recipe.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"/>
<meta name="author" content="Nathan Solomon">
<title>French toast</title>
</head>
<!-- The following HTML is taken from https://morotsman.github.io/blog,/google/analytics,/jekyll,/github/pages/2020/07/07/add-google-analytics.html -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-206139197-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-206139197-1');
</script>
<body>
<div id="main">
<h1>French toast</h1><hr>

<p><strong>Source:</strong> based on <a href=></a></p>

<p><strong>Serving size:</strong> </p>


<hr><h2>Ingredients</h2>
<ul>
</ul>

<hr><h2>Instructions</h2>
<p></p>

<h2>Serving suggestion</h2><hr>
<p></p>
</div>
</body>
</html>
10 changes: 10 additions & 0 deletions food/French_toast/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Source": "",
"Serving size": "",
"Pictures": {
},
"Ingredients": [
],
"Instructions": "",
"Serving suggestion": ""
}
49 changes: 49 additions & 0 deletions food/Garbanzos/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!Doctype HTML>
<html>
<head>
<link rel="stylesheet" href="../recipe.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"/>
<meta name="author" content="Nathan Solomon">
<title>Garbanzos</title>
</head>
<!-- The following HTML is taken from https://morotsman.github.io/blog,/google/analytics,/jekyll,/github/pages/2020/07/07/add-google-analytics.html -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-206139197-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-206139197-1');
</script>
<body>
<div id="main">
<h1>Garbanzos</h1><hr>




<hr><h2>Ingredients</h2>
<ul>
<li>2 cans of garbanzo beans</li>
<li>3 large tomatoes</li>
<li>shredded coconut</li>
<li>minced garlic</li>
<li>one spoonful of ghee</li>
<li>garam masala</li>
<li>curry powder</li>
<li>amchur</li>
<li>ground coriander</li>
<li>cumin seeds</li>
<li>cayenne powder</li>
<li>salt</li>
</ul>

<hr><h2>Instructions</h2>
<p>Simmer until tomatoes are soft</p>

<h2>Serving suggestion</h2><hr>
<p>Serve over basmati rice</p>
</div>
</body>
</html>
18 changes: 18 additions & 0 deletions food/Garbanzos/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Ingredients": [
"2 cans of garbanzo beans",
"3 large tomatoes",
"shredded coconut",
"minced garlic",
"one spoonful of ghee",
"garam masala",
"curry powder",
"amchur",
"ground coriander",
"cumin seeds",
"cayenne powder",
"salt"
],
"Instructions": "Simmer until tomatoes are soft",
"Serving suggestion": "Serve over basmati rice"
}
2 changes: 1 addition & 1 deletion food/Lemon_bars/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>Shortbread</h3>
<h3>Filling</h3>
<ul>
<li>6 eggs</li>
<li>3 cups sugar</li>
<li>Less than 2 cups sugar</li>
<li>1 cup lemon juice (I used meyer lemons)</li>
<li>2/3 cup flour</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion food/Lemon_bars/recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"Filling": [
"6 eggs",
"3 cups sugar",
"Less than 2 cups sugar",
"1 cup lemon juice (I used meyer lemons)",
"2/3 cup flour"
]
Expand Down
1 change: 1 addition & 0 deletions food/Rice_cake_pasta/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h1>Rice cake pasta</h1><hr>
<li>Bok choy</li>
<li>Szechuan peppercorns</li>
<li>Garlic</li>
<li>Chili flakes</li>
</ul>


Expand Down
3 changes: 2 additions & 1 deletion food/Rice_cake_pasta/recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Black bean sauce",
"Bok choy",
"Szechuan peppercorns",
"Garlic"
"Garlic",
"Chili flakes"
]
}
59 changes: 59 additions & 0 deletions food/Tofu_tagine/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!Doctype HTML>
<html>
<head>
<link rel="stylesheet" href="../recipe.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"/>
<meta name="author" content="Nathan Solomon">
<title>Tofu tagine</title>
</head>
<!-- The following HTML is taken from https://morotsman.github.io/blog,/google/analytics,/jekyll,/github/pages/2020/07/07/add-google-analytics.html -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-206139197-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-206139197-1');
</script>
<body>
<div id="main">
<h1>Tofu tagine</h1><hr>

<p><strong>Source:</strong> based on <a href=></a></p>

<p><strong>Serving size:</strong> </p>


<hr><h2>Ingredients</h2>
<ul>
<li>Firm tofu, seitan, or chicken</li>
<li>Green olives</li>
<li>Lemon slices, with peel</li>
<li>Onion</li>
<li>Carrots</li>
<li>Olive oil</li>
<li>salt</li>
<li>pepper</li>
<li>Cilantro leaves</li>
<li>Ground coriander</li>
<li>paprika</li>
<li>cinnamon</li>
<li>ginger</li>
<li>cayenne</li>
<li>ground cumin</li>
<li>ras el hanout</li>
<li>raisings</li>
<li>apricots</li>
<li>tomato paste</li>
<li>slivered almonds</li>
</ul>

<hr><h2>Instructions</h2>
<p>Coat tofu/chicken/seitan/tofucken in spice rub, then braise everything together</p>

<h2>Serving suggestion</h2><hr>
<p>Serve on top of couscous</p>
</div>
</body>
</html>
31 changes: 31 additions & 0 deletions food/Tofu_tagine/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

{
"Source": "",
"Serving size": "",
"Pictures": {
},
"Ingredients": [
"Firm tofu, seitan, or chicken",
"Green olives",
"Lemon slices, with peel",
"Onion",
"Carrots",
"Olive oil",
"salt",
"pepper",
"Cilantro leaves",
"Ground coriander",
"paprika",
"cinnamon",
"ginger",
"cayenne",
"ground cumin",
"ras el hanout",
"raisings",
"apricots",
"tomato paste",
"slivered almonds"
],
"Instructions": "Coat tofu/chicken/seitan/tofucken in spice rub, then braise everything together",
"Serving suggestion": "Serve on top of couscous"
}
6 changes: 5 additions & 1 deletion food/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ <h2>Recipe list</h2>
<a href="Blueberry_cake"><div class="recipe-button"><p>Blueberry cake</p></div></a>
<a href="Bread"><div class="recipe-button"><p>Bread</p></div></a>
<a href="Brunswick_stew"><div class="recipe-button"><p>Brunswick stew</p></div></a>
<a href="Brussel_sprouts"><div class="recipe-button"><p>Brussel sprouts</p></div></a>
<a href="Cauliflower_and_leek_soup"><div class="recipe-button"><p>Cauliflower and leek soup</p></div></a>
<a href="Chocolate_chip_cookies"><div class="recipe-button"><p>Chocolate chip cookies</p></div></a>
<a href="Coconut-lemongrass_curry"><div class="recipe-button"><p>Coconut-lemongrass curry</p></div></a>
<a href="Eggplant_and_tofu"><div class="recipe-button"><p>Eggplant and tofu</p></div></a>
<a href="Finnish_pancake"><div class="recipe-button"><p>Finnish pancake</p></div></a>
<a href="French_toast"><div class="recipe-button"><p>French toast</p></div></a>
<a href="Garbanzos"><div class="recipe-button"><p>Garbanzos</p></div></a>
<a href="Graham_cracker_toffee"><div class="recipe-button"><p>Graham cracker toffee</p></div></a>
<a href="Greek_salad"><div class="recipe-button"><p>Greek salad</p></div></a>
<a href="Lemon_bars"><div class="recipe-button"><p>Lemon bars</p></div></a>
Expand All @@ -56,8 +59,9 @@ <h2>Recipe list</h2>
<a href="Snickerdoodles"><div class="recipe-button"><p>Snickerdoodles</p></div></a>
<a href="Sticky_rice_with_mangoes"><div class="recipe-button"><p>Sticky rice with mangoes</p></div></a>
<a href="Stir-fried_gnocchi"><div class="recipe-button"><p>Stir-fried gnocchi</p></div></a>
<a href="Tofu_tagine"><div class="recipe-button"><p>Tofu tagine</p></div></a>
<a href="Tomato_soup"><div class="recipe-button"><p>Tomato soup</p></div></a>
</div>
</div>
</body>
</html>
</html>
3 changes: 3 additions & 0 deletions food/update_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
if '_site' in recipe_names: recipe_names.remove('_site')
if '__pycache__' in recipe_names: recipe_names.remove('__pycache__')
for recipe_name in recipe_names:
print(f'Reading {recipe_name}')
human_readable_recipe_name = recipe_name.replace('_', ' ')
with open(f'{recipe_name}/recipe.json') as file:
recipe = json.load(file)
Expand Down Expand Up @@ -94,3 +95,5 @@
html_file_contents = re.sub(regex, recipe_list_html, html_file_contents)
with open('index.html', 'w') as file:
file.write(html_file_contents)

print("Done updating HTML")

0 comments on commit 27472f7

Please sign in to comment.