fix(sitemap): use absolute uri

This commit is contained in:
s3lph 2023-01-05 03:38:41 +01:00
parent 69c205de54
commit 75658b8c7c
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,7 @@ languages:
jinja_environment: jinja_environment:
baseurl_abs: https://chaostreff.ch/
baseurl: / baseurl: /
spaceapi_proxy_endpoint: /spaceapi spaceapi_proxy_endpoint: /spaceapi

View file

@ -2,9 +2,14 @@
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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" 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"> xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ baseurl_abs }}/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for language in languages %} {% for language in languages %}
<url> <url>
<loc>{{ baseurl }}{{ language }}/</loc> <loc>{{ baseurl_abs }}{{ language }}/</loc>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>0.5</priority> <priority>0.5</priority>
</url> </url>