Skip to content

feat: add last modified timestamp to content pages#2982

Open
bartlomieju wants to merge 1 commit intomainfrom
feat/last-modified-timestamp
Open

feat: add last modified timestamp to content pages#2982
bartlomieju wants to merge 1 commit intomainfrom
feat/last-modified-timestamp

Conversation

@bartlomieju
Copy link
Member

Summary

  • Adds a "Last updated on " timestamp to documentation pages, using git history as the source of truth
  • Runs a single git log command (~150ms) via Deno.spawnAndWaitSync() during Lume preprocessing to build a file→date map — avoids the per-file git log cost of Lume's built-in "Git Last Modified"
  • Displays the date above the feedback section on content pages; skips API reference and lint rule pages (auto-generated)

Closes #1280

Test plan

  • deno task build:light succeeds
  • Verified <time> element with correct date appears in built HTML
  • Visual check on deployed preview

🤖 Generated with Claude Code

Uses a single `git log` command via `Deno.spawnAndWaitSync()` during
Lume preprocessing to build a file-to-date map, then displays
"Last updated on <date>" above the feedback section. Skips API
reference and lint rule pages. Closes #1280.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Add last modified timestmp to content pages in docs

2 participants