Improving the Arqora sitemap for notes
A technical note on adding the notes index and individual note pages to the generated sitemap safely.
Quick Summary
The sitemap now includes the notes index and every published note URL.
The notes index uses the most recent valid note date as its last modified value.
The implementation avoids depending on note order when calculating sitemap metadata.
Why notes need sitemap entries
Notes are public content, so they should not rely only on internal links for discovery. A generated sitemap gives crawlers a direct list of the available note URLs.
The notes index and individual note pages both matter because they represent different entry points into the content.
Avoiding fragile assumptions
The notes array is currently sorted when published notes are returned, but sitemap logic should not depend on that order to find the latest note date.
Calculating the most recent valid date from all notes makes the sitemap safer if the data layer changes later.
What the sitemap communicates
The sitemap tells crawlers which Arqora pages are available and how often they are expected to change. It is not a guarantee of indexing, but it is an important signal.
For a new domain, that signal should be clean, consistent, and hard to break with one bad note entry.