{% for sitemap_entry in entries %} {{ sitemap_entry.permalink | escape_xml | safe }} {% if sitemap_entry.date %} {{ sitemap_entry.date }} {% endif %} {% endfor %}