{% extends "base.html" %} {% block content %} {% for page in pages %} {% if page.slug == 'index'%} {{page.content }} {% endif %} {% endfor %} {% endblock content %}