{# Search results partial. Wrapped in #search-results so the htmx swap on the form's hx-target lands cleanly. The snippet field carries `` markers from FTS5 already escaped; we render it `| safe` so the highlighting reaches the page. #}
{% if not query %}

Type a query above to search.

{% elif not results.hits %}

No results for “{{ query }}”.

{% else %}

{{ results.total }} result{% if results.total != 1 %}s{% endif %} for “{{ query }}”.

{% if results.total > results.page_size %} {% set last_page = ((results.total - 1) // results.page_size) + 1 %} {% endif %} {% endif %}