Skip to content

Use page-level dates in sitemap#169

Open
portdeveloper wants to merge 1 commit into
scaffold-eth:mainfrom
portdeveloper:codex/sitemap-page-lastmod
Open

Use page-level dates in sitemap#169
portdeveloper wants to merge 1 commit into
scaffold-eth:mainfrom
portdeveloper:codex/sitemap-page-lastmod

Conversation

@portdeveloper

Copy link
Copy Markdown
Member

What changed

  • Tracks each sitemap route's source page file.
  • Uses the page file's latest Git commit date for lastmod.
  • Falls back to filesystem mtime when Git metadata is unavailable.
  • Batches Git history lookup so build time stays close to the existing baseline.

Why

A single build-wide lastmod date is too coarse for crawlers and AI/RAG ingestion jobs. Page-level freshness helps downstream consumers prioritize only changed docs.

Fixes #166

Merge order

Independent. This PR can be merged in any order relative to #164 and #165.

Validation

  • pnpm build
  • Checked generated docs/dist/sitemap.xml: 46 URLs, 5 unique lastmod values in this checkout.

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

@portdeveloper is attempting to deploy a commit to the BuidlGuidl Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate sitemap lastmod from page-level source dates

1 participant