feat(search): ✨ add inline search field
This commit is contained in:
parent
de1f1446a3
commit
05996b2ebf
10 changed files with 231 additions and 32 deletions
10
www/templates/fragments/search/inline.html
Normal file
10
www/templates/fragments/search/inline.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
{% for post in search_results %}
|
||||
<a href="{{post.url}}#:~:text={{ search_query|url_encode }}"
|
||||
rel="noopener"
|
||||
hx-boost="off"> {# We can't boost because text-fragments HAVE to be user-inited! #}
|
||||
<li>
|
||||
{{post.title}}
|
||||
</li>
|
||||
</a>
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue