zola/src/templates/sitemap.xml

16 lines
436 B
XML
Raw Normal View History

2017-03-06 14:45:57 +00:00
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in pages %}
<url>
2017-03-19 10:40:31 +00:00
<loc>{{ page.permalink | safe }}</loc>
2017-03-06 14:45:57 +00:00
{% if page.date %}
<lastmod>{{ page.date }}</lastmod>
{% endif %}
</url>
{% endfor %}
2017-03-19 10:40:31 +00:00
{% for section in sections %}
<url>
<loc>{{ section.permalink | safe }}</loc>
</url>
{% endfor %}
2017-03-06 14:45:57 +00:00
</urlset>