From c6c5990df077e938a7343515c3916a0fc6594fd9 Mon Sep 17 00:00:00 2001 From: bedroesb Date: Wed, 15 Jan 2025 11:19:26 +0100 Subject: [PATCH] revert --- _includes/resource-table-all.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_includes/resource-table-all.html b/_includes/resource-table-all.html index 60d5ace..b4a56b7 100644 --- a/_includes/resource-table-all.html +++ b/_includes/resource-table-all.html @@ -11,9 +11,11 @@ {%- for country_page in country_pages %} {%- if include.tag %} {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} -{%- if tool_matches %} +{%- unless tool_matches.size == 0 %} {%- assign tool_matches_total = tool_matches_total | plus: tool_matches.size %} -{%- endif %} +{%- endunless %} +{%- else %} +{%- assign tool_matches_total = tool_matches_total | plus: country_page.national_resources.size %} {%- endif %} {%- endfor %} {%- endunless %}