From 68763c6fe7342565ba2d73998411069332b5db20 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 6 Mar 2020 23:20:21 +1000 Subject: [PATCH] display info when there are no recipes --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0e394a6..e636af2 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ 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 %} -{%- if site.recipes.size > 1 %}

Stats

{%- assign steps_total = 0 -%} {%- assign longest_recipe = site.recipes | first -%} @@ -51,4 +51,11 @@ layout: default + +{%- 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 %}