{% extends 'blog/base.html' %} {% block title %} DBNX | Blog {% endblock title %} {% load static %} {% load humanize %} {% block content %}

Search for "{{query}}"

{% if posts %} {% for post in posts %}
{% if post.image %} {% endif %}
{{post.title}}

{{ post.body | safe | truncatewords:25 }}

{% endfor %} {% else %}
Your search for "{{query}}" did not match any results.
{% endif %} {% include 'blog/pagination.html' %}
{% endblock %}