{% def search_product_card(card) %} {% set node = card.node %} {% set query = search_query | default('') %} {% set page_href = node.url %}

{{ node.mount }} / {{ node.section }}

{{ node.title | highlight_search(query) }}

{% if card.snippet %}

{{ card.snippet | highlight_search(query) }}

{% end %}
{% if card.tag_labels | length > 0 %}
{% for tag in card.tag_labels %} {{ tag }} {% endfor %}
{% endif %}
{% if card.matches | length > 0 %} {% endif %}
{% end %} {% def search_result_card(hit) %} {% set hit_href = search_hit_url(hit) %} {% set hit_heading = search_hit_heading(hit) %} {% set query = search_query | default('') %}

{{ hit.node.mount }} / {{ hit.node.section }}

{{ hit.node.title | highlight_search(query) }}

{% if hit.snippet or hit.node.description %}

{{ (hit.snippet or hit.node.description) | highlight_search(query) }}

{% end %} {% if hit_heading %}

Match{{ hit_heading | highlight_search(query) }}

{% end %}
{% end %} {% set page_cards = search_page_cards | default([]) %} {% set hit_groups = search_hit_groups | default([]) %} {% set query = search_query | default('') %} {% set active_section = search_section | default('') %} {% set expand_url = search_global_expand_url | default('') %} {% set discovery_sections = search_discovery_sections | default([]) %} {% if page_cards | length > 0 %}
{% for card in page_cards %} {{ search_product_card(card) }} {% end %}
{% elif hit_groups | length > 0 %} {% for group in hit_groups %}

{{ group.label }}

{{ group.hits | length }}
{% for hit in group.hits %} {{ search_result_card(hit) }} {% end %}
{% endfor %} {% elif hits | length > 0 %}
{% for hit in hits %} {{ search_result_card(hit) }} {% end %}
{% elif search_query %}

No results for “{{ search_query }}”{% if active_section %} in {{ active_section }}{% end %}

{% if expand_url and (active_section or search_mount or search_tag) and not (search_global | default(false)) %} Search entire catalog {% end %} Clear scope
{% else %}

Choose a mount or section in the scope panel, or start with a popular area below.

{% if discovery_sections | length > 0 %}
{% for item in discovery_sections %} {{ item.label }} {{ item.count }} pages {% end %}
{% end %}
{% endif %}