Repository navigation
Sitemap: a lastmod date for every generated page - #56
Merged
Merged
Conversation
Each page written by tools/seo.py (5000 sequence pages, 20 family pages, the list, How it works) now carries <lastmod> in sitemap.xml, so crawlers know what changed. The dates live in tools/lastmod.json with a fingerprint of each page: a changed page is dated today (UTC), an unchanged one keeps its date, so rerunning seo.py on the same pages writes the same sitemap (the workflow's "in step" check). A page new to the file takes the date of the last commit that touched it. The home page, edited by hand, carries no date. Seeded today: every generated page last changed on 2026-10-18 (#55). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012pertSPnNVuBXskLxACKDH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every page written by
tools/seo.py(5000 sequence pages, 20 family pages, the list, How it works) now carries<lastmod>insitemap.xml, so crawlers know which pages changed.tools/lastmod.json, one entry per page, holding a fingerprint (the first 16 hex digits of the page's SHA-1) and a date.seo.pyon the same pages writes the same sitemap, and the workflow's "static pages in step" check keeps passing.seo.py, so it carries no date. Otherwise every front-end PR would also have to rerunseo.py.Seeded today: every generated page last changed on 2026-10-18 (#55).
Tests
seo.pyrun writes an identical sitemap.check_site.pypasses.After merging: resubmit
sitemap.xmlonce in Search Console.Generated by Claude Code