diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 15822c5d9..dba8485a7 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -2,7 +2,7 @@ layout: default ---
- + {% for image in page.image %}
@@ -27,10 +27,10 @@

{{ page.title }}

{{page.content}}
- +
- +
{% if page.components %} @@ -48,38 +48,56 @@

Ingredients

    {% for ingredient in page.ingredients %} -
  • {{ ingredient | markdownify }}
  • + {% if ingredient.first %} +

    {{ ingredient.first[0] }}

    +
      + {% for i in ingredient.first[1] %} +
    • {{ i | markdownify }}
    • + {% endfor %} +
    + {% else %} +
  • {{ ingredient | markdownify }}
  • + {% endif %} {% endfor %}
{% endif %}
- +

Directions

    {% for direction in page.directions %} -
  • {{ direction | markdownify }}
  • + {% if direction.first %} +

    {{ direction.first[0] }}

    +
      + {% for d in direction.first[1] %} +
    • {{ d | markdownify }}
    • + {% endfor %} +
    + {% else %} +
  • {{ direction | markdownify }}
  • + {% endif %} {% endfor %}
- +
{% if page.components %} - +
↓ This is a component-based recipe (fancy talk for making the dish in pieces, then assembling). ↓
- +
{% for component in page.components %}
{% for recipe in site.components %} {% if recipe.title == component %}

{{recipe.title}}

- + {% for image in recipe.image %}
@@ -92,30 +110,48 @@

{{recipe.title}}

{% endfor %} {% endif %} {% endfor %} - +

Ingredients

    - {% for item in recipe.ingredients %} -
  • {{ item | markdownify }}
  • - {% endfor %} + {% for ingredient in recipe.ingredients %} + {% if ingredient.first %} +

    {{ ingredient.first[0] }}

    +
      + {% for i in ingredient.first[1] %} +
    • {{ i | markdownify }}
    • + {% endfor %} +
    + {% else %} +
  • {{ ingredient | markdownify }}
  • + {% endif %} + {% endfor %}
- +

Steps

    - {% for item in recipe.directions %} -
  • {{ item | markdownify }}
  • + {% for direction in recipe.directions %} + {% if direction.first %} +

    {{ direction.first[0] }}

    +
      + {% for d in direction.first[1] %} +
    • {{ d | markdownify }}
    • + {% endfor %} +
    + {% else %} +
  • {{ direction | markdownify }}
  • + {% endif %} {% endfor %}
- + {% endif %} {% endfor %}
{% endfor %}
- + {% endif %} - + {% for category in page.categories %}

Category: {{ category }}

{% endfor %} @@ -148,5 +184,5 @@

Steps

}); }); - - \ No newline at end of file + + diff --git a/css/main.scss b/css/main.scss old mode 100755 new mode 100644