sitemap fix

This commit is contained in:
2026-08-17 00:09:28 +02:00
parent 36ff6f97dd
commit 6cfb01543d
3 changed files with 3 additions and 1 deletions
+2
View File
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in collections.all %}
{%- if not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>
</url>
{%- endif %}
{%- endfor %}
</urlset>
Binary file not shown.
+1 -1
View File
@@ -5,7 +5,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.url != "/cv-print/" %}
{%- if page.url != "/cv-print/" and not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>