chore: remove trailing slashes from URLs

This commit is contained in:
Oliver Davies 2022-02-27 13:01:59 +00:00
parent 0752bf9385
commit 03ffa4398f

View file

@ -8,27 +8,27 @@ use:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}</loc>
<loc>{{ site.url|trim('/', 'right') }}</loc>
<priority>0.8</priority>
</url>
{% for page in data.pages if not page.exclude_from_sitemap %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<loc>{{ site.url }}{{ page.url|trim('/', 'right') }}</loc>
<priority>0.8</priority>
</url>
{% endfor %}
{% for post in data.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
<loc>{{ site.url }}{{ post.url|trim('/', 'right') }}</loc>
<priority>1.0</priority>
</url>
{% endfor %}
{% for talk in data.talks if not talk.hide_page %}
<url>
<loc>{{ site.url }}{{ talk.url }}</loc>
<loc>{{ site.url }}{{ talk.url|trim('/', 'right') }}</loc>
<priority>1.0</priority>
</url>
{% endfor %}