fix: derive sitemap dates from page history

This commit is contained in:
Timo
2026-07-19 21:33:53 +02:00
parent 4882e058f1
commit 1149de7ab7
5 changed files with 61 additions and 23 deletions
+5 -3
View File
@@ -83,8 +83,10 @@ for (const metadata of requiredSupportSocialMetadata) {
throw new Error(`site-access-help.html is missing SEO metadata: ${metadata}`);
}
}
if (/<lastmod>/.test(websiteBuild) || /const today = new Date\(\)/.test(websiteBuild)) {
throw new Error('Sitemap must not claim synthetic modification dates for every URL');
if (!websiteBuild.includes("['log', '-1', '--format=%cs', '--', ...sourceFiles]")
|| !websiteBuild.includes("lastmod(['website/site-access-help.html'])")
|| /const today = new Date\(\)/.test(websiteBuild)) {
throw new Error('Sitemap lastmod values must come from the mapped source files in Git');
}
const documentedRelayUrls = [...llmsText.matchAll(/`(wss:\/\/[^`\s]+)`/g)].map(([, value]) => new URL(value));
const hasCanonicalPublicRelay = documentedRelayUrls.some((url) => (
@@ -199,7 +201,7 @@ if (!/animation:\s*none\s*!important/.test(reducedMotionRule)) {
console.log('Extension mockup theme-sensitive text uses theme-aware colors');
console.log('Landing CSS is render-blocking, single-request, and cascade-stable');
console.log('Landing head discovers a complete and architecture-accurate llms.txt');
console.log('Support-page social metadata and sitemap dates remain truthful');
console.log('Support-page social metadata and Git-derived sitemap dates remain truthful');
console.log('Website self-hosting examples include production secrets and consistent networking');
console.log('Foreground film birds use complete, always-on wing and glide animations');
console.log('All Getting Started mockups define explicit light-theme surfaces');