feat: can now choose search result types

This commit is contained in:
Per Stark
2026-06-01 14:37:19 +02:00
parent 744482f2c8
commit d2c1ea7d2a
6 changed files with 180 additions and 63 deletions
+3
View File
@@ -1,6 +1,9 @@
<div class="flex items-center gap-2 min-w-[90px] w-full">
<form class="w-full relative" hx-boost="true" method="get" action="/search"
hx-trigger="keyup changed delay:500ms from:#search-input, search from:#search-input" hx-push-url="true">
{% if view_param is defined and view_param and view_param != 'all' %}
<input type="hidden" name="view" value="{{ view_param }}" />
{% endif %}
<input id="search-input" type="search" aria-label="Search" class=" nb-input w-full pl-9 ml-2" name="query"
autocomplete="off" value="{{ query_param | default('', true) }}" />
<button type="submit"