Modify sitemap

This commit is contained in:
mathias 2019-07-30 23:30:47 +03:00
parent 53b1324eab
commit 330a055c22

View file

@ -2,10 +2,14 @@
layout: minify layout: minify
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset 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" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in site.pages %} {% for page in site.pages %}
<url> {% if page.url == "/" or page.url contains ".html" %}
<loc>{{ site.url }}{{ page.url }}</loc> {% unless page.url == "/404" %}
</url> <url>
<loc>{{ site.url }}{{ page.url }}</loc>
</url>
{% endunless %}
{% endif %}
{% endfor %} {% endfor %}
</urlset> </urlset>