site/templates/sitemap.xml

14 lines
447 B
XML
Raw Normal View History

2020-08-11 16:14:38 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for sitemap_entry in entries %}
{%- if sitemap_entry.permalink is not starting_with(get_url(path="formats")) %}
<url>
<loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc>
{%- if sitemap_entry.updated %}
<lastmod>{{ sitemap_entry.updated }}</lastmod>
{%- endif %}
</url>
{%- endif %}
{%- endfor %}
</urlset>