recipe-site/_includes/recipes.html

19 lines
571 B
HTML
Raw Normal View History

<div id='recipes'>
{% for recipe in site.recipes | limit: 15 -%}
<a href='{{ recipe.url }}' class='recipe-listing'>
<h3>{{ recipe.name }}</h3>
<p>
By {{ recipe.author }} -
{% if recipe.difficulty %}Difficulty: <span class='stars'>{{ recipe.difficulty | to_stars }}</span> - {%- endif %}
2020-03-06 11:32:01 +00:00
{{ recipe.method | size }} steps
{%- if recipe.time %} - {{ recipe.time | hours_and_minutes: false }}{%- endif -%}
</p>
<ol class='excerpt'>
{% for step in recipe.method | limit: 4 %}
<li>{{ step }}</li>
{% endfor %}
</ol>
</a>
{% endfor %}
</div>