{% extends 'search/base.html' %} {% load staticfiles %} {% block seo %} {% endblock seo %} {% block content %} {% for items in search_list %} {% for item in items %} {% if item.title %} {{ item.title }} {% else %} {{ item.name }} {% endif %} {% endfor %} {% endfor %} {% endblock content %}