Fixed SiteMap whom 100% validated

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2019-05-03 17:02:15 +04:00
parent ad343f0d3d
commit c1489ff81b
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -1,25 +1,24 @@
---
layout: null
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>
<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>
<url>
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
</urlset>