{% extends 'base.html' %} {% block title %}contact{% endblock %} {% block content %} Contact {% for heading, entries in data.items() %} {{ heading }} {% for entry in entries %} {% if entry[1] %}{% endif %}{{ entry[0] }}{% if entry[1] %}{% endif %} {% endfor %} {% endfor %} {% endblock %}