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

26 lines
676 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>
<loc>{{ category | safe }}</loc>
</url>
{% endfor %}
{% for tag in tags %}
<url>
<loc>{{ tag | safe }}</loc>
</url>
{% endfor %}
2017-03-06 14:45:57 +00:00
</urlset>