fix sitemap

This commit is contained in:
2026-08-17 00:09:50 +02:00
parent 23bad9e7a7
commit 1bd44fb9ef
+1 -1
View File
@@ -4,7 +4,7 @@ eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in collections.all %}{% if page.data.layout != "redirect.njk" and page.data.permalink != "/sitemap.xml" %}
{%- for page in collections.all %}{% if page.data.layout != "redirect.njk" and page.data.permalink != "/sitemap.xml" and page.url != "/404/" %}
<url>
<loc>{{ site.domain }}{{ page.url }}</loc>{% if page.data.lastChanged %}
<lastmod>{{ page.data.lastChanged | toIsoDate }}</lastmod>{% endif %}