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