{% extends "blog/base.html" %} {% load blog_tags %} {% block title %}Search{% endblock %} {% block content %} {% if query %}

Posts containing "{{ query }}"

{% with results.count as total_results %} Found {{ total_results }} result{{ total_results|pluralize }} {% endwith %}

{% for post in results %}

{{ post.title }}

{{ post.body|markdown|truncatewords_html:5 }} {% empty %}

There are no results for your query.

{% endfor %}

Search again

{% else %}

Search for posts

{{ form.as_p }}
{% endif %} {% endblock %}