diff --git a/_includes/timings.html b/_includes/timings.html new file mode 100644 index 000000000..605d6f5df --- /dev/null +++ b/_includes/timings.html @@ -0,0 +1,28 @@ +{% assign thisRecipe = include.recipe %} +
+ {% if thisRecipe.preptime %} +
+ + Prep + +
+ + {% endif %} + {% if thisRecipe.cooktime %} +
+ + Cook + +
+ + {% endif %} + {% if thisRecipe.totaltime %} +
+ + Total + +
+ +{% endif %} +
+{% assign thisRecipe = nil %} diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 33426a7e0..60a4f19fe 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -22,6 +22,7 @@

{{ page.title }}

+ {% include timings.html recipe=page %}
@@ -100,6 +101,8 @@

{{recipe.title}}

{% endif %} {% endfor %} + {% include timings.html recipe=recipe %} +

{{ site.translation[site.language].ingredients }}