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
---
<?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 %}
{% if page.url == "/" or page.url contains ".html" %}
{% unless page.url == "/404" %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
</url>
{% endunless %}
{% endif %}
{% endfor %}
</urlset>