zola/components/templates/src/builtins/sitemap.xml

26 lines
696 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-20 03:42:43 +00:00
{% for category in categories %}
<url>
2017-07-04 23:27:27 +00:00
<loc>{{ category.permalink | safe }}</loc>
2017-03-20 03:42:43 +00:00
</url>
{% endfor %}
{% for tag in tags %}
<url>
2017-07-04 23:27:27 +00:00
<loc>{{ tag.permalink | safe }}</loc>
2017-03-20 03:42:43 +00:00
</url>
{% endfor %}
2017-03-06 14:45:57 +00:00
</urlset>