Redesigned 'sitemap.xml'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
074012ec0c
commit
ccea2fd5b4
@ -4,28 +4,22 @@ layout: compress
|
|||||||
---
|
---
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<?xml-stylesheet type="text/xsl" href="{{ page.permalink | absolute_url | xml_escape }}"?>
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
|
||||||
|
|
||||||
<!-- Pages -->
|
<!-- Pages -->
|
||||||
{% for item in site.html_pages %}
|
{% for item in site.html_pages %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
|
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
|
||||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.5</priority>
|
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<!-- Posts -->
|
<!-- Posts -->
|
||||||
{% for item in site.posts %}
|
{% for item in site.posts %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
|
<loc>{{ item.url | absolute_url | xml_escape }}</loc>
|
||||||
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
|
||||||
<changefreq>weekly</changefreq>
|
|
||||||
<priority>0.8</priority>
|
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</urlset>
|
</urlset>
|
Loading…
x
Reference in New Issue
Block a user