diff options
Diffstat (limited to 'templates/sitemap.xml')
-rw-r--r-- | templates/sitemap.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..e0cfc82 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + {%- for sitemap_entry in entries %} + {%- if not sitemap_entry.extra.hidden|default(value=false) %} + <url> + <loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc> + {%- if sitemap_entry.updated %} + <lastmod>{{ sitemap_entry.updated }}</lastmod> + {%- endif %} + </url> + {%- endif %} + {%- endfor %} +</urlset> |