{% extends 'base.html' %} {% block content %}
{% for content in results %} {% if content.type.name == 'news' %}
{% elif content.type.name == 'events' %}
{{ content.title }}

{{content.header|striptags|truncatechars:100|safe}}

read more

{% else %}
Add view for content type: {{content.type}}
{% endif %} {% endfor %}

{% endblock %}