feat(website): Add last updated dates for agents, prompts, instructions, and skills

- Add git-dates.mjs utility to extract file modification dates from git history
- Include lastUpdated field in JSON data for all resource types
- Display relative time (e.g., '3 days ago') with full date on hover
- Add 'Recently Updated' sort option to agents, prompts, instructions, and skills pages
- Update deploy-website.yml to use fetch-depth: 0 for full git history

CI overhead: ~20-30s additional for full git checkout
This commit is contained in:
Aaron Powell
2026-02-03 12:14:45 +11:00
parent b492cfe854
commit 46256b3a50
13 changed files with 358 additions and 14 deletions

View File

@@ -40,6 +40,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history needed for git-based last updated dates
- name: Setup Node.js
uses: actions/setup-node@v4