Apply priority to entries in sitemap based on component version order
Sitemap is an awesome tool to integrate with search engines but today Antora does not allow to fill this value.
I see a few options (and potentially all can be part of antora):
- the antora.yml contains an hardcoded value
- if not it can be deduced sorting all the versions and computing the distance to the "latest" (if you have 0.5.1 and 1.0 versions, 1.0 would have priority 1 and 0.5.1 would have 0.5[something])
- likely a custom algorithm which could be either coded or passed through site.yml
Note that it can also require to be able to flag the lastmod properly to be efficient and use the .adoc git last update instead of last sitemap generation (to refine since it has the issue to ignore template updates).