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