feat: integrate tag pages into sitemap

Thread tag names from collect_tags() through
generate_sitemap_file to generate_sitemap, appending
/tags/<tag>.html entries to sitemap.xml output.

Refactor: hoist collect_tags into run(), rename
generate_tag_pages to write_tag_pages.

Test suite: 83 → 84, phase 3 complete.
This commit is contained in:
Timothy DeHerrera
2026-02-15 09:15:31 -07:00
parent e7809e1ce2
commit 7b3373295b
3 changed files with 44 additions and 18 deletions

View File

@@ -131,10 +131,10 @@ Items validated by codebase investigation:
- [x] Collect all unique tags across content items during build
- [x] Create `tags/default.html` template in `docs/templates/`
- [x] Generate `/tags/<tag>.html` for each unique tag with list of tagged items
- [ ] Add tag listing page entries to sitemap (if enabled)
- [x] Add tag listing page entries to sitemap (if enabled)
- [x] Add tests: 404 page generation
- [x] Add tests: tag listing page generation (correct paths, correct items per tag)
- [ ] End-to-end: build `docs/` site and verify all outputs
- [x] End-to-end: build `docs/` site and verify all outputs
## Verification