2020-03-01 08:25:15 +00:00
|
|
|
<div id='recipes'>
|
2020-02-29 18:05:06 +00:00
|
|
|
{% for recipe in site.recipes -%}
|
2020-03-01 08:25:15 +00:00
|
|
|
<a href='{{ recipe.url }}' class='recipe-listing'>
|
|
|
|
<h2>{{ recipe.name }}</h2>
|
|
|
|
<p>
|
|
|
|
By {{ recipe.author }} - {{ recipe.method | size }} steps -
|
|
|
|
{%- if recipe.time > 59 %} {{ recipe.time | divided_by: 60}}h {% endif -%}
|
|
|
|
{% assign mins = recipe.time | modulo: 60 -%}
|
|
|
|
{%- if mins > 0 %}{{ mins }}m{% endif %}
|
|
|
|
</p>
|
|
|
|
<ol class='excerpt'>
|
|
|
|
{% for step in recipe.method | limit: 4 %}
|
|
|
|
<li>{{ step }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
</a>
|
2020-02-29 18:05:06 +00:00
|
|
|
{% endfor %}
|
2020-03-01 08:25:15 +00:00
|
|
|
</div>
|