Centralize robots.txt and sitemap

- One robots.txt at root referencing two sitemaps
- One central sitemap.xml with all pages (no per-site sitemaps)
- Deleted: 4 per-site sitemap templates, 4 per-site robots.txt files
- Simplified sitemap template (uses collections.all)
This commit is contained in:
2026-09-11 12:36:18 +02:00
parent c77ad91e0e
commit dbb791b1a6
13 changed files with 4 additions and 52 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- set sitemapPages = collections[sitemapCollection] if sitemapCollection else collections.all %}
{%- for page in sitemapPages %}
{%- for page in collections.all %}
{%- if not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ pathPrefix }}{{ 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>