2020-03-01 08:25:15 +00:00
|
|
|
<div id='recipes'>
|
2020-03-03 16:54:37 +00:00
|
|
|
{% for recipe in site.recipes | limit: 15 -%}
|
2020-03-01 08:25:15 +00:00
|
|
|
<a href='{{ recipe.url }}' class='recipe-listing'>
|
2020-03-03 16:54:37 +00:00
|
|
|
<h3>{{ recipe.name }}</h3>
|
2020-03-01 08:25:15 +00:00
|
|
|
<p>
|
2020-03-03 16:54:37 +00:00
|
|
|
By {{ recipe.author }} -
|
2020-03-06 11:16:12 +00:00
|
|
|
{% if recipe.difficulty %}Difficulty: <span class='stars'>{{ recipe.difficulty | to_stars }}</span> - {%- endif %}
|
2020-03-03 16:54:37 +00:00
|
|
|
{{ recipe.method | size }} steps {%- if recipe.time %} -
|
2020-03-01 08:25:15 +00:00
|
|
|
{%- if recipe.time > 59 %} {{ recipe.time | divided_by: 60}}h {% endif -%}
|
|
|
|
{% assign mins = recipe.time | modulo: 60 -%}
|
|
|
|
{%- if mins > 0 %}{{ mins }}m{% endif %}
|
2020-03-03 14:16:30 +00:00
|
|
|
{%- endif -%}
|
2020-03-01 08:25:15 +00:00
|
|
|
</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>
|