diff --git a/build.py b/build.py
index 01639f7..fc4bf23 100755
--- a/build.py
+++ b/build.py
@@ -13,6 +13,15 @@ with open('menu.yaml', 'r') as file:
templateMenu = env.get_template("menu.html")
templateRecipes = env.get_template("recipes.html")
+for bev in menu['menu']:
+ #print(bev)
+ for name in bev:
+ print(name)
+ for ingredient in bev[name]['ingredients']:
+ print(f'
{ingredient[list(ingredient)[0]]} {list(ingredient)[0]}')
+ print(markdown.markdown(bev[name]['directions']))
+ bev[name]['directions_html'] = markdown.markdown(bev[name]['directions'])
+
with open('index.html', 'w') as file:
file.write(templateMenu.render(bevs = menu['menu']))
@@ -21,13 +30,6 @@ with open('recipes.html', 'w') as file:
print(menu['menu'])
-for bev in menu['menu']:
- #print(bev)
- for name in bev:
- print(name)
- for ingredient in bev[name]['ingredients']:
- print(f'{ingredient[list(ingredient)[0]]} {list(ingredient)[0]}')
- print(markdown.markdown(bev[name]['directions']))
for ingredient in menu['out_of_stock']:
print(ingredient)
diff --git a/recipes.html b/recipes.html
index 08cdfaf..484c400 100644
--- a/recipes.html
+++ b/recipes.html
@@ -26,9 +26,10 @@
Directions
-1. Stir with ice. Strain into rocks glass over large cube.
-1. Garnish with orange twist.
-
+
+- Stir with ice. Strain into rocks glass over large cube.
+- Garnish with orange twist.
+
@@ -51,9 +52,10 @@
Directions
-1. Stir with ice. Strain into rocks glass over large cube.
-1. Garnish with orange twist.
-
+
+- Stir with ice. Strain into rocks glass over large cube.
+- Garnish with orange twist.
+
@@ -80,9 +82,10 @@
Directions
-1. Stir with ice. Strain into chilled coupe.
-1. Garnish with orange twist.
-
+
+- Stir with ice. Strain into chilled coupe.
+- Garnish with orange twist.
+
@@ -109,9 +112,10 @@
Directions
-1. Stir with ice. Strain into rocks glass over large cube.
-1. Garnish with orange twist.
-
+
+- Stir with ice. Strain into rocks glass over large cube.
+- Garnish with orange twist.
+
@@ -134,8 +138,9 @@
Directions
-1. Shake with ice. Double strain into chilled coupe.
-
+
+- Shake with ice. Double strain into chilled coupe.
+
@@ -154,10 +159,11 @@
Directions
-1. Pour gin and tonic over ice in short glass.
-1. Stir gently.
-1. Garnish with lime wheel.
-
+
+- Pour gin and tonic over ice in short glass.
+- Stir gently.
+- Garnish with lime wheel.
+
@@ -180,9 +186,10 @@
Directions
-1. Shake with ice.
-1. Double strain into chilled coupe.
-
+
+- Shake with ice.
+- Double strain into chilled coupe.
+
@@ -209,9 +216,10 @@
Directions
-1. Shake with ice.
-1. Double strain into chilled coupe.
-
+
+- Shake with ice.
+- Double strain into chilled coupe.
+
diff --git a/templates/recipes.html b/templates/recipes.html
index 8e0514f..8cf6fac 100644
--- a/templates/recipes.html
+++ b/templates/recipes.html
@@ -2,5 +2,5 @@
{% block amount %}{{ amount }} {% endblock %}
{% block directions %}
Directions
-{{ details['directions'] }}
+{{ details['directions_html']|safe }}
{% endblock %}