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"?>
|
||||
<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 %}
|
||||
|
|
Loading…
Reference in a new issue