ID:WORK-087Status:done
Add Sitemap lastmod Support Using File Timestamps
Priority:lowComplexity:simpleMilestone:v1.0.0Source:SPEC-029
e900a90f262d7bf0a845af87ae8d2a05e0043cadfeThe sitemap generator in packages/content/src/sitemap.ts currently emits no <lastmod> tags. With $file.modified available in the content pipeline, sitemap generation can include <lastmod> for each page, helping search engines prioritize crawl frequency.
<lastmod> elements for pages that have a file.modified value<lastmod> uses ISO 8601 date format (YYYY-MM-DD)<lastmod> rather than emitting an empty element<lastmod> appears in sitemap output when file timestamps are availablepackages/content/src/sitemap.ts, read file.modified from page data during serialization<lastmod> element within the <url> block when the value is presentpackages/content/src/sitemap.ts — sitemap generator