block.
# Outside paginate, `search.results` yields only the first TEN items however many matched -
# measured: a query reporting 96 results handed this loop 10 - so the pre-pass was counting
# a tenth of the page and reporting 0 hidden parts while the grid was correctly hiding six.
# Inside paginate it iterates the same slice the grid renders, so the two cannot disagree.
assign active_type = ''
if request.path contains 'type:'
assign active_type = request.path | split: 'type:' | last
endif
-%}