{% extends 'blog/base.html' %} {% load crispy_forms_tags %} {% block title %}Blog Search{% endblock title %} {% block pagetitle %}Blog Search{% endblock pagetitle %} {% block blog_content %} {% if query %}

Results for "{{ query }}"

{% with articles|length as total_articles %}

{{ total_articles }} match{{ total_articles|pluralize:"es" }} found

{% if total_articles %} {% include 'blog/article_list.html' %} {% endif %} {% endwith %} {% else %} {% block h1_no_query %}

Search the Blog

{% endblock h1_no_query %} {% endif %}
{{ form|crispy }}
{% endblock blog_content %}