{%- comment -%} Filters + sort toolbar (shared by collection and search pages). Wrap the page in [data-collection] for the JS. Params: filters, sort_options, current_sort, action_url, sort_action_url, clear_url, count_label, results_type, terms, tag_list, tag_base_url {%- endcomment -%} {%- liquid assign sort_label = blank for option in sort_options if option.value == current_sort capture sort_label render 'sort-label', value: option.value, fallback: option.name endcapture endif endfor -%}