Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Jan 15, 2025
1 parent 9b64762 commit 8d0f526
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _includes/resource-table-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
{%- 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 %}
{%- unless tool_matches.size == 0 %}
{%- if tool_matches %}
{%- assign tool_matches_total = tool_matches_total | plus: tool_matches.size %}
{%- endunless %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endunless %}
{%- unless tools.size == 0 and tool_matches_total == 0 %}
tools: {{tools}} and tool.size: {{tools.size}} and tool matches total: {{tool_matches_total}}
{%- if include.tag and tools.size != 0 %}
<a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
{%- if site.theme_variables.headings.resource-table-all-collapse %}
Expand Down

0 comments on commit 8d0f526

Please sign in to comment.