--- title: Home layout: default --- {%- if site.recipes.size > 1 %}

Recipes

Showing {% if site.recipes_per_page > site.recipes.size %}{{ site.recipes_per_page}}{% else %}{{ site.recipes.size }}{% endif %} results.

{% include recipes.html %}

Stats

{%- assign steps_total = 0 -%} {%- assign longest_recipe = site.recipes | first -%} {%- assign most_ingredients = site.recipes | first -%} {%- for recipe in site.recipes -%} {%- assign steps_total = steps_total | plus: recipe.method.size -%} {%- if recipe.method.size > longest_recipe.method.size -%} {%- assign longest_recipe = recipe -%} {%- endif -%} {%- if recipe.ingredients.size > most_ingredients.ingredients.size -%} {%- assign most_ingredients = recipe -%} {%- endif -%} {%- endfor -%} {%- assign recipes_size_float = site.recipes.size | times: 1.0 -%}
Recipes {{ site.recipes.size }}
Subrecipes {{ site.subrecipes.size }}
Authors {{ site.recipes | map: "author" | uniq | size }}
Average recipe steps {{ steps_total | divided_by: recipes_size_float | round: 1 | replace: '.0', '' -}}
Most ingredients (excluding subrecipes) {{ most_ingredients.name }} ({{ most_ingredients.ingredients.size }} ingredients)
Most steps (excluding subrecipes) {{ longest_recipe.name }} ({{ longest_recipe.method.size }} steps)
{%- else -%} {%- comment -%} 0 recipes {%- endcomment -%}

No recipes

No recipes found. Ensure that there is at least one recipe file in the _recipes directory. See the help page for more information.

{% endif %}