Fix sitemap doubled pathPrefix and CSS paths for sub-sites

- sitemap.njk: remove site.pathPrefix (page.url already includes it in Eleventy v3)
- base.njk: prefix CSS paths with site.pathPrefix so sub-sites load their own theme
This commit is contained in:
2026-09-11 12:10:18 +02:00
parent 9cda842250
commit 84cd3f8562
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{%- for page in collections.all %}
{%- if not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ site.pathPrefix | default("") }}{{ page.url }}</loc>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>