
Flexweg Sitemaps
Generates yearly sitemaps, a sitemap index, an optional Google News sitemap, and a configurable robots.txt. Incremental — only the touched year regenerates on each publish.
Description
Flexweg Sitemaps writes Google-compliant XML sitemaps to /sitemaps/sitemap-<year>.xml, a top-level sitemaps/sitemap-index.xml referencing each year, and — optionally — a Google News sitemap covering the last 1–30 days of articles. A configurable robots.txt at the site root advertises the sitemap index to crawlers.
Two XSL stylesheets transform the raw XML into clean HTML tables when opened in a browser, so the sitemaps are usable for both humans and bots. Per-locale variants are emitted automatically when the flexweg-multilang plugin is enabled.
Performance: the plugin runs incrementally on every publish — only the year sitemap containing the touched post + the index regenerate, not the whole catalog. Years that empty out have their sitemap deleted from the public site so the index never points at stale files.