XML sitemaps: add feature
XML sitemaps: add feature: a task in smol-software-harbor (Harbor dataset). Add last-modified dates to the sitemap. sitemap(pages, base) in sitemap.py must accept pages as (path, date or None) pairs, and url entry(loc, lastmod=None) must add <lastmod YYYY-MM-DD</lastmod after <loc when a date is…
The task
Add last-modified dates to the sitemap. `sitemap(pages, base)` in `sitemap.py` must accept pages as `(path, date_or_None)` pairs, and `url_entry(loc, lastmod=None)` must add `<lastmod>YYYY-MM-DD</lastmod>` after `<loc>` when a date is given (nothing when it is `None`). Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.