A block where the search results of the passed search query are available. Expects one argument, which is the search query.

The following variables are available within the block:

{% search_results "<search query>" %}

  {% for post in search_results %}
    <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
    <hr>
  {% endfor %}

{% endsearch_results %}

Use request.query_object to use a search term passed as a URL parameter.

The block accepts the following extra optional parameters: