{# ABOUTME: Plan-01 step 4 chip strip — renders dismissible pills for the active filter set. #} {# Each chip's dismiss link rebuilds the /books URL without that filter (and resets page=1). #} {%- macro chip_label(key, value) -%} {%- if key == 'enriched' -%} {%- if value == '1' -%}Enriched{%- else -%}Not enriched{%- endif -%} {%- elif key == 'format' -%} Format: {{ value|upper }} {%- elif key == 'language' -%} Language: {{ value }} {%- elif key == 'status' -%} Status: {{ value|capitalize }} {%- else -%} {{ key }}: {{ value }} {%- endif -%} {%- endmacro -%} {% if query.filters %}