popov.link/_pages/sitemap.xml
Valentin Popov ccea2fd5b4
Redesigned 'sitemap.xml'
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-09-19 04:05:12 +04:00

25 lines
550 B
XML

---
permalink: "sitemap.xml"
layout: compress
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Pages -->
{% for item in site.html_pages %}
<url>
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
<!-- Posts -->
{% for item in site.posts %}
<url>
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
</urlset>