feat(sitemap): add XML sitemap generation module

Implement src/sitemap.rs with generate_sitemap() for SEO-compliant
XML sitemap generation. Follows the feed.rs pattern:

- SitemapEntry struct for URL metadata
- build_sitemap_xml() for XML construction
- xml_escape() for special character handling
- 5 unit tests covering single/multiple entries, lastmod, escaping

Module declared in main.rs but not yet integrated into pipeline.
This commit is contained in:
Timothy DeHerrera
2026-01-31 22:00:20 -07:00
parent eaf09c1c7d
commit 4d869a85f7
3 changed files with 187 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
pkgs.taplo
pkgs.pkg-config
pkgs.nixfmt
pkgs.nodePackages.prettier
pkgs.miniserve # Dev server for testing
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [