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