<!-- extend base layout --> {% extends "base.html" %} {% block content %} <h1>{{ _('Search results for "%(query)s":', query = query) }}</h1> {% include 'flash.html' %} {% for post in results %} {% include 'post.html' %} {% endfor %} {% endblock %}