chore: remove trailing slashes from URLs
This commit is contained in:
parent
0752bf9385
commit
03ffa4398f
|
@ -8,27 +8,27 @@ use:
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}</loc>
|
<loc>{{ site.url|trim('/', 'right') }}</loc>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
{% for page in data.pages if not page.exclude_from_sitemap %}
|
{% for page in data.pages if not page.exclude_from_sitemap %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
<loc>{{ site.url }}{{ page.url|trim('/', 'right') }}</loc>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for post in data.posts %}
|
{% for post in data.posts %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
<loc>{{ site.url }}{{ post.url|trim('/', 'right') }}</loc>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for talk in data.talks if not talk.hide_page %}
|
{% for talk in data.talks if not talk.hide_page %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ talk.url }}</loc>
|
<loc>{{ site.url }}{{ talk.url|trim('/', 'right') }}</loc>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue