minor homepage cleanup

This commit is contained in:
Lynne Megido 2020-03-04 00:16:30 +10:00
parent 0d2af3e218
commit 069dbff927
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -3,10 +3,11 @@
<a href='{{ recipe.url }}' class='recipe-listing'>
<h2>{{ recipe.name }}</h2>
<p>
By {{ recipe.author }} - {{ recipe.method | size }} steps -
By {{ recipe.author }} - {{ recipe.method | size }} steps {%- if recipe.time %} -
{%- if recipe.time > 59 %} {{ recipe.time | divided_by: 60}}h {% endif -%}
{% assign mins = recipe.time | modulo: 60 -%}
{%- if mins > 0 %}{{ mins }}m{% endif %}
{%- endif -%}
</p>
<ol class='excerpt'>
{% for step in recipe.method | limit: 4 %}